Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Bertrand
duniter
Commits
a5881dbe
Commit
a5881dbe
authored
6 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[enh] allow to force enabling/disabling WS2P sync
parent
c2253019
Branches
dev
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/dto/ConfDTO.ts
+1
-0
1 addition, 0 deletions
app/lib/dto/ConfDTO.ts
app/modules/ws2p/index.ts
+4
-0
4 additions, 0 deletions
app/modules/ws2p/index.ts
with
5 additions
and
0 deletions
app/lib/dto/ConfDTO.ts
+
1
−
0
View file @
a5881dbe
...
...
@@ -85,6 +85,7 @@ export interface WS2PConfDTO {
ws2p
?:
{
privateAccess
?:
boolean
publicAccess
?:
boolean
sync
?:
boolean
uuid
?:
string
upnp
?:
boolean
remotehost
?:
string
|
null
...
...
This diff is collapsed.
Click to expand it.
app/modules/ws2p/index.ts
+
4
−
0
View file @
a5881dbe
...
...
@@ -41,6 +41,8 @@ export const WS2PDependency = {
{
value
:
'
--ws2p-public
'
,
desc
:
'
Enable WS2P Public access.
'
},
{
value
:
'
--ws2p-noprivate
'
,
desc
:
'
Disable WS2P Private access.
'
},
{
value
:
'
--ws2p-nopublic
'
,
desc
:
'
Disable WS2P Public access.
'
},
{
value
:
'
--ws2p-sync
'
,
desc
:
'
Enable WS2P SYNC access.
'
},
{
value
:
'
--ws2p-nosync
'
,
desc
:
'
Disable WS2P SYNC access.
'
},
{
value
:
'
--ws2p-prefered-add <pubkey>
'
,
desc
:
'
Add a prefered node to connect to through private access.
'
},
{
value
:
'
--ws2p-prefered-rm <pubkey>
'
,
desc
:
'
Remove prefered node.
'
},
{
value
:
'
--ws2p-prefered-only <pubkey>
'
,
desc
:
'
Only connect to prefered node.
'
},
...
...
@@ -79,6 +81,8 @@ export const WS2PDependency = {
if
(
program
.
ws2pPublic
!==
undefined
)
conf
.
ws2p
.
publicAccess
=
true
if
(
program
.
ws2pNoprivate
!==
undefined
)
conf
.
ws2p
.
privateAccess
=
false
if
(
program
.
ws2pNopublic
!==
undefined
)
conf
.
ws2p
.
publicAccess
=
false
if
(
program
.
ws2pSync
!==
undefined
)
conf
.
ws2p
.
sync
=
true
if
(
program
.
ws2pNosync
!==
undefined
)
conf
.
ws2p
.
sync
=
false
// Prefered nodes
if
(
program
.
ws2pPreferedAdd
!==
undefined
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment