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
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
nexedi
re6stnet
Commits
ebee829d
Commit
ebee829d
authored
Jul 01, 2019
by
Killian Lufau
Committed by
Julien Muchembled
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt HMAC to upstream option 'no_hmac_verify'
parent
21eacdba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
re6st/plib.py
re6st/plib.py
+3
-4
No files found.
re6st/plib.py
View file @
ebee829d
...
...
@@ -88,14 +88,13 @@ def router(ip, ip4, src, hello_interval, log_path, state_path, pidfile,
cmd
+=
'-C'
,
(
'key type blake2s id %s value %s'
%
(
id
,
value
.
encode
(
'hex'
)))
key
(
cmd
,
'sign'
,
hmac_sign
)
cmd
+=
'-C'
,
'default %s hmac sign'
%
default
default
+=
' hmac sign'
if
hmac_accept
is
not
None
:
if
hmac_accept
:
key
(
cmd
,
'accept'
,
hmac_accept
)
else
:
cmd
+=
'-C'
,
'ignore_no_hmac'
else
:
cmd
+=
'-C'
,
'default '
+
default
default
+=
' no_hmac_verify true'
cmd
+=
'-C'
,
'default '
+
default
if
ip4
:
cmd
+=
'-C'
,
'redistribute ip %s/%s eq %s'
%
(
ip4
,
n4
,
n4
)
if
src
:
...
...
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