mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-12 12:50:28 +08:00
feat(p2p): change ip protocol to IPComp(0x6C)
This commit is contained in:
@@ -13,7 +13,7 @@ func NewEndpoint(endpoint string, configs ...any) (p2p.EndPoint, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ptcl := uint(0x04) // IPIP
|
ptcl := uint(0x6C) // IPComp https://datatracker.ietf.org/doc/html/rfc3173
|
||||||
if len(configs) > 0 {
|
if len(configs) > 0 {
|
||||||
ptcl = configs[0].(uint)
|
ptcl = configs[0].(uint)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user