1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-06 00:10:25 +08:00

feat(p2p): change ip protocol to IPComp(0x6C)

This commit is contained in:
源文雨
2024-07-24 21:47:30 +08:00
parent eb49d35f65
commit 574d1ccfc4

View File

@@ -13,7 +13,7 @@ func NewEndpoint(endpoint string, configs ...any) (p2p.EndPoint, error) {
if err != nil {
return nil, err
}
ptcl := uint(0x04) // IPIP
ptcl := uint(0x6C) // IPComp https://datatracker.ietf.org/doc/html/rfc3173
if len(configs) > 0 {
ptcl = configs[0].(uint)
}