File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
- dante-1.4.0
10
10
before_install :
11
11
- sudo apt-get update -qq
12
- - sudo apt-get install -qq build-essential libssl-dev swig python-m2crypto python-numpy dnsutils iproute nginx
12
+ - sudo apt-get install -qq build-essential libssl-dev swig python-m2crypto python-numpy dnsutils iproute nginx bc
13
13
- sudo dd if=/dev/urandom of=/usr/share/nginx/www/file bs=1M count=10
14
14
- sudo service nginx restart
15
15
- pip install m2crypto salsa20 pep8 pyflakes nose coverage
Original file line number Diff line number Diff line change 29
29
import sys
30
30
import getopt
31
31
import logging
32
- from shadowsocks .common import to_bytes
32
+ from shadowsocks .common import to_bytes , to_str
33
33
34
34
35
35
VERBOSE_LEVEL = 5
@@ -73,7 +73,7 @@ def check_config(config):
73
73
logging .warn ('warning: local set to listen on 0.0.0.0, it\' s not safe' )
74
74
if config .get ('server' , '' ) in [b'127.0.0.1' , b'localhost' ]:
75
75
logging .warn ('warning: server set to listen on %s:%s, are you sure?' %
76
- (config ['server' ], config ['server_port' ]))
76
+ (to_str ( config ['server' ]) , config ['server_port' ]))
77
77
if (config .get ('method' , '' ) or '' ).lower () == b'table' :
78
78
logging .warn ('warning: table is not safe; please use a safer cipher, '
79
79
'like AES-256-CFB' )
You can’t perform that action at this time.
0 commit comments