Browse Source

Revert "Merge pull request #6111 from psychomario/domainsocket"

This reverts commit b168b38f18, reversing
changes made to b7f7104862.
pull/6133/head
Ruud 9 years ago
parent
commit
358b38d56c
  1. 12
      couchpotato/runner.py

12
couchpotato/runner.py

@ -23,7 +23,6 @@ import requests
from requests.packages.urllib3 import disable_warnings
from tornado.httpserver import HTTPServer
from tornado.web import Application, StaticFileHandler, RedirectHandler
from tornado.netutil import bind_unix_socket
from couchpotato.core.softchroot import SoftChrootInitError
def getOptions(args):
@ -346,14 +345,11 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
while try_restart:
try:
if config['host'].startswith('unix:'):
server.add_socket(bind_unix_socket(config['host'][5:]))
else:
server.listen(config['port'], config['host'])
server.listen(config['port'], config['host'])
if Env.setting('ipv6', default = False):
try: server.listen(config['port'], config['host6'])
except: log.info2('Tried to bind to IPV6 but failed')
if Env.setting('ipv6', default = False):
try: server.listen(config['port'], config['host6'])
except: log.info2('Tried to bind to IPV6 but failed')
loop.start()
server.close_all_connections()

Loading…
Cancel
Save