Skip to content
Snippets Groups Projects
Commit 41e8e393 authored by Éloïs's avatar Éloïs
Browse files

Adapt endpoint utf8 format

parent e559737b
No related branches found
No related tags found
1 merge request!8WIP: WS2P v2
...@@ -242,14 +242,14 @@ Network features : ...@@ -242,14 +242,14 @@ Network features :
| bit | feature | | bit | feature |
|:---------:|----------| |:---------:|----------|
| 0000_0001 | ip_v4 | | 0000_0001 | IP4 |
| 0000_0010 | ip_v6 | | 0000_0010 | IP6 |
| 0000_0100 | S | | 0000_0100 | TLS |
| 0000_1000 | TOR | | 0000_1000 | TOR |
The first two features are a bit special because they must be read to parse the endpoint, indicating if the ipv4 and ipv6 fields are present or not. The first two features are a bit special because they must be read to parse the endpoint, indicating if the ipv4 and ipv6 fields are present or not.
S := This feature indicates that the endpoint should be contacted with an SSL/TLS overlay (HTTPS or WSS). TLS := This feature indicates that the endpoint should be contacted with an SSL/TLS overlay (HTTPS or WSS).
TOR := This feature indicates that the endpoint must be contacted via the tor network (hidden service). TOR := This feature indicates that the endpoint must be contacted via the tor network (hidden service).
...@@ -261,11 +261,11 @@ WS2PFeatures type definition : ...@@ -261,11 +261,11 @@ WS2PFeatures type definition :
| bit | feature | | bit | feature |
|:---------:|-----------| |:---------:|-----------|
| 0000_0001 | DEFLATE | | 0000_0001 | DEF |
| 0000_0010 | LOW | | 0000_0010 | LOW |
| 0000_0100 | ABF | | 0000_0100 | ABF |
DEFLATE := Supports permessage-deflate extension DEF := Supports permessage-deflate extension
LOW := Accept low speed connection requests LOW := Accept low speed connection requests
...@@ -286,7 +286,7 @@ AF := API_FEATURE ...@@ -286,7 +286,7 @@ AF := API_FEATURE
Example: Example:
WS2P 2 1 S 3 DEFLATE LOW RBF g1.durs.ifee.fr 443 ws2p WS2P 2 1 TLS 3 DEF LOW ABF g1.durs.ifee.fr 443 ws2p
Same endpoint in binary format : Same endpoint in binary format :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment