From 574d1ccfc49802f89a95c5589b0d2cb29ba88b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:47:30 +0800 Subject: [PATCH] feat(p2p): change ip protocol to IPComp(0x6C) --- gold/p2p/ip/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/p2p/ip/init.go b/gold/p2p/ip/init.go index 153e904..66b075f 100644 --- a/gold/p2p/ip/init.go +++ b/gold/p2p/ip/init.go @@ -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) }