Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
zhifan huang
re6stnet
Commits
756bda32
Commit
756bda32
authored
Jul 29, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail on messages received from link-local ipv6
parent
1f394dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
re6st/tunnel.py
re6st/tunnel.py
+10
-5
No files found.
re6st/tunnel.py
View file @
756bda32
...
...
@@ -426,13 +426,18 @@ class TunnelManager(object):
def
handlePeerEvent
(
self
):
msg
,
address
=
self
.
sock
.
recvfrom
(
1
<<
16
)
if
address
[
0
]
==
'::1'
:
sender
=
None
sender
=
None
else
:
sender
=
utils
.
binFromIp
(
address
[
0
])
if
not
sender
.
startswith
(
self
.
_network
):
return
try
:
sender
=
utils
.
binFromIp
(
address
[
0
])
except
socket
.
error
,
e
:
# inet_pton does not parse '<ipv6>%<iface>'
logging
.
warning
(
'ignored message from %r (%s)'
,
address
,
e
)
return
if
not
sender
.
startswith
(
self
.
_network
):
return
if
not
msg
:
return
return
code
=
ord
(
msg
[
0
])
if
code
==
1
:
# answer
# Old versions may send additional and obsolete addresses.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment