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
Xiaowu Zhang
re6stnet
Commits
d19b3a61
Commit
d19b3a61
authored
Jun 26, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add /usr/local/bin to PATH in the ovpv-client script
Fix show replay messages when using wireless network
parent
de0b065e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
re6st/ovpn-client
re6st/ovpn-client
+1
-1
re6st/plib.py
re6st/plib.py
+1
-0
re6st/tunnel.py
re6st/tunnel.py
+1
-1
No files found.
re6st/ovpn-client
View file @
d19b3a61
...
@@ -4,7 +4,7 @@ import os, sys
...
@@ -4,7 +4,7 @@ import os, sys
if
os
.
environ
[
'script_type'
]
==
'up'
:
if
os
.
environ
[
'script_type'
]
==
'up'
:
# OpenVPN unsets PATH before calling hooks
# OpenVPN unsets PATH before calling hooks
# which is equivalent to set /bin:/usr/bin
# which is equivalent to set /bin:/usr/bin
os
.
environ
[
'PATH'
]
=
'/bin:/sbin:/usr/bin:/usr/sbin'
os
.
environ
[
'PATH'
]
=
'/bin:/sbin:/usr/bin:/usr/sbin
:/usr/local/bin
'
os
.
execlp
(
'ip'
,
'ip'
,
'link'
,
'set'
,
os
.
environ
[
'dev'
],
'up'
)
os
.
execlp
(
'ip'
,
'ip'
,
'link'
,
'set'
,
os
.
environ
[
'dev'
],
'up'
)
# Write into pipe external ip address received
# Write into pipe external ip address received
...
...
re6st/plib.py
View file @
d19b3a61
...
@@ -13,6 +13,7 @@ def openvpn(iface, encrypt, *args, **kw):
...
@@ -13,6 +13,7 @@ def openvpn(iface, encrypt, *args, **kw):
'--persist-tun'
,
'--persist-tun'
,
'--persist-key'
,
'--persist-key'
,
'--script-security'
,
'2'
,
'--script-security'
,
'2'
,
'--mute-replay-warnings'
,
'--up'
,
ovpn_client
,
'--up'
,
ovpn_client
,
#'--user', 'nobody', '--group', 'nogroup',
#'--user', 'nobody', '--group', 'nogroup',
]
+
list
(
args
)
]
+
list
(
args
)
...
...
re6st/tunnel.py
View file @
d19b3a61
...
@@ -468,7 +468,7 @@ class TunnelManager(object):
...
@@ -468,7 +468,7 @@ class TunnelManager(object):
msg
.
append
(
encode
(
self
.
_peer_db
.
getPeerList
().
next
()))
msg
.
append
(
encode
(
self
.
_peer_db
.
getPeerList
().
next
()))
if
msg
:
if
msg
:
try
:
try
:
self
.
sock
.
sendto
(
'
\
1
'
+
''
.
join
(
msg
),
address
)
self
.
sock
.
sendto
(
'
\
1
'
+
''
.
join
(
msg
),
address
[:
2
]
)
except
socket
.
error
,
e
:
except
socket
.
error
,
e
:
logging
.
info
(
'Failed to reply to %s (%s)'
,
address
,
e
)
logging
.
info
(
'Failed to reply to %s (%s)'
,
address
,
e
)
elif
code
==
255
:
elif
code
==
255
:
...
...
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