Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError #4

Closed
alex-eri opened this issue Nov 28, 2012 · 0 comments
Closed

UnboundLocalError #4

alex-eri opened this issue Nov 28, 2012 · 0 comments

Comments

@alex-eri
Copy link

pystun from pip

trying dead stun server i have

nat_type, external_ip, external_port = stun.get_ip_info(stun_host='stun.sipgate.net')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/stun/init.py", line 237, in get_ip_info
stun_host=stun_host)
File "/usr/lib/python2.7/site-packages/stun/init.py", line 206, in get_nat_type
ret = stun_test(s, host, port, source_ip, source_port, changeRequest)
UnboundLocalError: local variable 'host' referenced before assignment

with alive server it is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant