fix host type in http_simple
This commit is contained in:
parent
1c58b10dd0
commit
63a6de5d26
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue