Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RFCs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Luke Marlin
RFCs
Commits
522af454
Commit
522af454
authored
7 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
Update 0004_ws2p_v1.md
parent
37abf5d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rfc/0004_ws2p_v1.md
+4
-2
4 additions, 2 deletions
rfc/0004_ws2p_v1.md
with
4 additions
and
2 deletions
rfc/0004_ws2p_v1.md
+
4
−
2
View file @
522af454
...
...
@@ -26,7 +26,9 @@ WS2P WS2P is exclusively based on websocket.
### Endpoint format
`WS2P uuid host port path`
In the peer card :
`WS2P uuid host port path`
Resolved in
*
:
`ws://host:port/path`
*
If the port is
`443`
, the
`wss://`
protocol will be used.
uuid := Random sequence of 8 hexadecimal characters. (This uuid makes it possible to identify a Duniter node in a unique way.)
host := domain name or ipv4 or ipv6 (it is not possible to declare both an ipv4 and an ipv6, for this it is necessary to use a domain name.)
...
...
@@ -36,7 +38,7 @@ path := Optional access path
Example of a valid endpoint :
`WS2P c1c39a0a g1-monit.librelois.fr 443 ws2p`
This endpoint is resolved as follows:
`wss://g1-monit.librelois.fr:443/ws2p`
o
ther valid endpoint :
`WS2P a0a45ed2 88.174.120.187 20901`
O
ther valid endpoint :
`WS2P a0a45ed2 88.174.120.187 20901`
This endpoint is resolved as follows:
`ws://88.174.120.187:20901`
Any ws2p endpoint must match this regexp :
`/^WS2P (?:[1-9][0-9]* )?([a-f0-9]{8}) ([a-z_][a-z0-9-_.]*|[0-9.]+|[0-9a-f:]+) ([0-9]+)(?: (.+))?$/`
...
...
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