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
Yohann D'Anello
re6stnet
Commits
c40694a6
Commit
c40694a6
authored
Jul 20, 2012
by
Guillaume Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments are possible in config files
parent
ef42f40f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
README
README
+1
-0
vifibnet.py
vifibnet.py
+5
-3
No files found.
README
View file @
c40694a6
...
@@ -8,3 +8,4 @@ The organisation of the code
...
@@ -8,3 +8,4 @@ The organisation of the code
tunnel.py To choose wich connection delete/keep/...
tunnel.py To choose wich connection delete/keep/...
upnpigd.py To open a port
upnpigd.py To open a port
vifibnet.py
View file @
c40694a6
...
@@ -7,9 +7,11 @@ import db, plib, upnpigd, utils, tunnel
...
@@ -7,9 +7,11 @@ import db, plib, upnpigd, utils, tunnel
class
ArgParser
(
ArgumentParser
):
class
ArgParser
(
ArgumentParser
):
def
convert_arg_line_to_args
(
self
,
arg_line
):
def
convert_arg_line_to_args
(
self
,
arg_line
):
for
arg
in
(
'--'
+
arg_line
.
lstrip
(
'--'
)).
split
():
arg_line
=
arg_line
.
split
(
'#'
)[
0
].
rstrip
()
if
arg
.
strip
():
if
arg_line
:
yield
arg
for
arg
in
(
'--'
+
arg_line
.
lstrip
(
'--'
)).
split
():
if
arg
.
strip
():
yield
arg
def
ovpnArgs
(
optional_args
,
ca_path
,
cert_path
):
def
ovpnArgs
(
optional_args
,
ca_path
,
cert_path
):
# Treat openvpn arguments
# Treat openvpn arguments
...
...
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