Ivars 5 years ago
parent
commit
07369f442e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      playstreamproxy.py

+ 2
- 1
playstreamproxy.py View File

297
 class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
297
 class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
298
     """Handle requests in a separate thread."""
298
     """Handle requests in a separate thread."""
299
 
299
 
300
-def start(host = HOST_NAME, port = PORT_NUMBER, key=KEY, redirect=REDIRECT):
300
+def start(host = HOST_NAME, port = PORT_NUMBER, redirect=REDIRECT, key=KEY):
301
     global REDIRECT,KEY
301
     global REDIRECT,KEY
302
     if redirect:
302
     if redirect:
303
         REDIRECT = redirect
303
         REDIRECT = redirect
472
 
472
 
473
 class ProxyDaemon(Daemon):
473
 class ProxyDaemon(Daemon):
474
     def run(self):
474
     def run(self):
475
+        print "Daemon start - %s" % MULTITHREAD
475
         if MULTITHREAD:
476
         if MULTITHREAD:
476
             start2()
477
             start2()
477
         else:
478
         else: