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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
re6stnet
Commits
9dac60f9
Commit
9dac60f9
authored
Mar 18, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning about a possible misuse of multiple --ip arguments
'--ip any' was also broken due to missing parenthesis.
parent
ed2846b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
re6stnet
re6stnet
+9
-3
No files found.
re6stnet
View file @
9dac60f9
...
...
@@ -159,9 +159,15 @@ def main():
else
:
remote_gateway
=
None
forwarder
=
None
if
len
(
config
.
ip
)
>
1
and
'upnp'
in
config
.
ip
or
'any'
in
config
.
ip
:
sys
.
exit
(
"error: argument --ip can be given only once with 'any'"
" or 'upnp' value"
)
if
len
(
config
.
ip
)
>
1
:
if
'upnp'
in
config
.
ip
or
'any'
in
config
.
ip
:
sys
.
exit
(
"error: argument --ip can be given only once with"
" 'any' or 'upnp' value"
)
logging
.
info
(
"Multiple --ip passed: note that re6st does nothing to"
" make sure that incoming paquets are replied via the correct"
" gateway. So without manual network configuration, this can"
" not be used to accept server connections from multiple"
" gateways."
)
if
'upnp'
in
config
.
ip
or
not
config
.
ip
:
logging
.
info
(
'Attempting automatic configuration via UPnP...'
)
try
:
...
...
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