mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-08 19:45:18 +03:00
Fix Wireguard options
This commit is contained in:
@@ -5,8 +5,8 @@ import (
|
||||
"net/netip"
|
||||
"time"
|
||||
|
||||
"github.com/sagernet/sing/common/json/badoption"
|
||||
tun "github.com/sagernet/sing-tun"
|
||||
"github.com/sagernet/sing/common/json/badoption"
|
||||
"github.com/sagernet/sing/common/logger"
|
||||
M "github.com/sagernet/sing/common/metadata"
|
||||
N "github.com/sagernet/sing/common/network"
|
||||
@@ -43,24 +43,27 @@ type PeerOptions struct {
|
||||
}
|
||||
|
||||
type AmneziaOptions struct {
|
||||
JC int
|
||||
JMin int
|
||||
JMax int
|
||||
S1 int
|
||||
S2 int
|
||||
S3 int
|
||||
S4 int
|
||||
H1 *badoption.Range[uint32]
|
||||
H2 *badoption.Range[uint32]
|
||||
H3 *badoption.Range[uint32]
|
||||
H4 *badoption.Range[uint32]
|
||||
I1 string
|
||||
I2 string
|
||||
I3 string
|
||||
I4 string
|
||||
I5 string
|
||||
J1 string
|
||||
J2 string
|
||||
J3 string
|
||||
ITime int64
|
||||
JC int
|
||||
JMin int
|
||||
JMax int
|
||||
S1 int
|
||||
S2 int
|
||||
S3 int
|
||||
S4 int
|
||||
H1 *badoption.Range[uint32]
|
||||
H2 *badoption.Range[uint32]
|
||||
H3 *badoption.Range[uint32]
|
||||
H4 *badoption.Range[uint32]
|
||||
I1 string
|
||||
I2 string
|
||||
I3 string
|
||||
I4 string
|
||||
I5 string
|
||||
HeaderProtectionKey string
|
||||
ContentPaddingAddition *badoption.Range[uint32]
|
||||
RekeyAfterTime *badoption.Range[uint32]
|
||||
RekeyTimeout *badoption.Range[uint32]
|
||||
RejectAfterTime *badoption.Range[uint32]
|
||||
KeepaliveTimeout *badoption.Range[uint32]
|
||||
MaxHandshakeAttempts *badoption.Range[uint32]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user