chore: update mipstack for api adjustment

This commit is contained in:
wwqgtxx committed 2026-08-23 01:27:41 +08:00
1 parent 8e6738fad4
commit f295ba6da4
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -163,7 +163,7 @@ func (o IPStackOption) validate() error {
default:
return fmt.Errorf("invalid IP stack mode %q; expected auto, gvisor, or mips", o.Mode)
}
switch mipstack.CongestionControl(o.CongestionController) {
switch o.CongestionController {
case "", mipstack.CongestionControlCUBIC, mipstack.CongestionControlReno, mipstack.CongestionControlBBR, mipstack.CongestionControlBBR3:
return nil
default:
@@ -204,7 +204,7 @@ func newIPStack(option IPStackOption, localAddresses []netip.Prefix, mtu uint32)
LocalAddresses: localAddresses,
MTU: mtu,
TCP: mipstack.TCPSocketDefaults{
CongestionControl: mipstack.CongestionControl(option.CongestionController),
CongestionControl: option.CongestionController,
// Align with sing-wireguard: enable keepalive with 15-second
// idle/interval timing and gVisor's default probe count.
KeepAlive: true,
+1 -1
View File
@@ -27,7 +27,7 @@ require (
github.com/metacubex/jls-tls v0.0.0-20260723084315-67adc0e2f796
github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604
github.com/metacubex/mhurl v0.1.0
github.com/metacubex/mipstack v0.0.0-20260820120222-f3276095eefa
github.com/metacubex/mipstack v0.0.0-20260822172056-710fa36f450b
github.com/metacubex/mlkem v0.1.0
github.com/metacubex/quic-go v0.61.1-0.20260727080200-2548683b76f4
github.com/metacubex/randv2 v0.2.0
+2 -2
View File
@@ -133,8 +133,8 @@ github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604 h1:hJwCVlE3ojViC3
github.com/metacubex/kcp-go v0.0.0-20260105040817-550693377604/go.mod h1:lpmN3m269b3V5jFCWtffqBLS4U3QQoIid9ugtO+OhVc=
github.com/metacubex/mhurl v0.1.0 h1:ZdW4Zxe3j3uJ89gNytOazHu6kbHn5owutN/VfXOI8GE=
github.com/metacubex/mhurl v0.1.0/go.mod h1:2qpQImCbXoUs6GwJrjuEXKelPyoimsIXr07eNKZdS00=
github.com/metacubex/mipstack v0.0.0-20260820120222-f3276095eefa h1:nB/OYUlv1s0TFxAFY9KZKlsJ4x2Kp5OThQ3PkD1HnrI=
github.com/metacubex/mipstack v0.0.0-20260820120222-f3276095eefa/go.mod h1:+bbwALZI0pbi2auSG5A3ptdpV2DZ2eLObziXo+P7oj0=
github.com/metacubex/mipstack v0.0.0-20260822172056-710fa36f450b h1:fw4PMe48AHsmUpv3EZ8u9qdNu5WyVirpsvyb/yU2VjE=
github.com/metacubex/mipstack v0.0.0-20260822172056-710fa36f450b/go.mod h1:+bbwALZI0pbi2auSG5A3ptdpV2DZ2eLObziXo+P7oj0=
github.com/metacubex/mlkem v0.1.0 h1:wFClitonSFcmipzzQvax75beLQU+D7JuC+VK1RzSL8I=
github.com/metacubex/mlkem v0.1.0/go.mod h1:amhaXZVeYNShuy9BILcR7P0gbeo/QLZsnqCdL8U2PDQ=
github.com/metacubex/nftables v0.0.0-20260426003805-208c2c1ba2cb h1:wk6mHYPURSUvWcUv72gNP79oiylFsscBSDPJ6ieV6Iw=