ignore port in bosh URL, it's entered separetly. Take into account proxy username when using bosh

This commit is contained in:
Yann Leboulanger 2009-04-06 14:05:07 +00:00
parent c5acd3f655
commit a6f62ac7c6
1 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ def get_proxy_data_from_dict(proxy):
if proxy_type == 'bosh' and not proxy['bosh_useproxy']: if proxy_type == 'bosh' and not proxy['bosh_useproxy']:
# with BOSH not over proxy we have to parse the hostname from BOSH URI # with BOSH not over proxy we have to parse the hostname from BOSH URI
tcp_host, tcp_port = urisplit(proxy['bosh_uri'])[1], proxy['bosh_port'] tcp_host, tcp_port = urisplit(proxy['bosh_uri'])[1], proxy['bosh_port']
tcp_host = tcp_host.split(':')[0]
else: else:
# with proxy!=bosh or with bosh over HTTP proxy we're connecting to proxy # with proxy!=bosh or with bosh over HTTP proxy we're connecting to proxy
# machine # machine