diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 19e2a75..f84beea 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -159,7 +159,7 @@ class http_simple(plain.plain): if lines and len(lines) > 1: for line in lines: if match_begin(line, b"Host: "): - return line[6:] + return common.to_str(line[6:]) def not_match_return(self, buf): self.has_sent_header = True diff --git a/shadowsocks/server.py b/shadowsocks/server.py index d3ce95c..f4dfdd5 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -96,8 +96,8 @@ def main(): protocol_param = password_obfs.get('protocol_param', protocol_param) obfs = password_obfs.get('obfs', obfs) obfs_param = password_obfs.get('obfs_param', obfs_param) - bind = password_obfs.get('bind', bind) - bindv6 = password_obfs.get('bindv6', bindv6) + bind = password_obfs.get('out_bind', bind) + bindv6 = password_obfs.get('out_bindv6', bindv6) else: password = password_obfs a_config = config.copy()