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
Boris Kocherov
re6stnet
Commits
84127aa6
Commit
84127aa6
authored
Aug 13, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
4c34833d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
docs/re6st-registry.rst
docs/re6st-registry.rst
+1
-1
re6st/db.py
re6st/db.py
+2
-2
re6st/tunnel.py
re6st/tunnel.py
+4
-7
No files found.
docs/re6st-registry.rst
View file @
84127aa6
...
@@ -28,7 +28,7 @@ running the re6st-registry must also have a client ( re6stnet ) running.
...
@@ -28,7 +28,7 @@ running the re6st-registry must also have a client ( re6stnet ) running.
USAGE
USAGE
=====
=====
The re6st-registry will automatically listen on both ipv4 and ipv6 for incom
m
ing
The re6st-registry will automatically listen on both ipv4 and ipv6 for incoming
request.
request.
--port port
--port port
...
...
re6st/db.py
View file @
84127aa6
...
@@ -164,9 +164,9 @@ class PeerManager:
...
@@ -164,9 +164,9 @@ class PeerManager:
def
handle_message
(
self
,
msg
):
def
handle_message
(
self
,
msg
):
script_type
,
arg
=
msg
.
split
()
script_type
,
arg
=
msg
.
split
()
if
script_type
==
'client-connect'
:
if
script_type
==
'client-connect'
:
logging
.
info
(
'Incom
m
ing connection from %s'
%
(
arg
,))
logging
.
info
(
'Incoming connection from %s'
%
(
arg
,))
prefix
=
utils
.
binFromSubnet
(
arg
)
prefix
=
utils
.
binFromSubnet
(
arg
)
if
self
.
tunnel_manager
.
checkIncom
m
ingTunnel
(
prefix
):
if
self
.
tunnel_manager
.
checkIncomingTunnel
(
prefix
):
self
.
blacklist
(
prefix
,
2
)
self
.
blacklist
(
prefix
,
2
)
elif
script_type
==
'client-disconnect'
:
elif
script_type
==
'client-disconnect'
:
self
.
whitelist
(
utils
.
binFromSubnet
(
arg
))
self
.
whitelist
(
utils
.
binFromSubnet
(
arg
))
...
...
re6st/tunnel.py
View file @
84127aa6
...
@@ -150,12 +150,9 @@ class TunnelManager:
...
@@ -150,12 +150,9 @@ class TunnelManager:
for
prefix
in
self
.
_connection_dict
.
keys
():
for
prefix
in
self
.
_connection_dict
.
keys
():
self
.
_kill
(
prefix
)
self
.
_kill
(
prefix
)
def
checkIncom
m
ingTunnel
(
self
,
prefix
):
def
checkIncomingTunnel
(
self
,
prefix
):
if
prefix
in
self
.
_connection_dict
:
if
prefix
in
self
.
_connection_dict
:
if
prefix
>=
self
.
_prefix
:
if
prefix
<
self
.
_prefix
:
self
.
_kill
(
prefix
)
return
True
else
:
return
False
return
False
else
:
self
.
_kill
(
prefix
)
return
True
return
True
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