|
@ -30,8 +30,7 @@ import logging |
|
|
import signal |
|
|
import signal |
|
|
|
|
|
|
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../')) |
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../')) |
|
|
from shadowsocks import utils, daemon, encrypt, eventloop, tcprelay, udprelay,\ |
|
|
from shadowsocks import utils, daemon, eventloop, tcprelay, udprelay, asyncdns |
|
|
asyncdns |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
def main(): |
|
@ -49,8 +48,6 @@ def main(): |
|
|
|
|
|
|
|
|
utils.print_shadowsocks() |
|
|
utils.print_shadowsocks() |
|
|
|
|
|
|
|
|
encrypt.try_cipher(config['password'], config['method']) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
logging.info("starting local at %s:%d" % |
|
|
logging.info("starting local at %s:%d" % |
|
|
(config['local_address'], config['local_port'])) |
|
|
(config['local_address'], config['local_port'])) |
|
|