Integrate AmneziaWG

This commit is contained in:
Shtorm
2025-05-24 23:54:15 +03:00
parent 84f87997bf
commit ccf46f62d1
7 changed files with 91 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ type EndpointOptions struct {
ResolvePeer func(domain string) (netip.Addr, error)
Peers []PeerOptions
Workers int
Amnezia *AmneziaOptions
}
type PeerOptions struct {
@@ -37,3 +38,15 @@ type PeerOptions struct {
PersistentKeepaliveInterval uint16
Reserved []uint8
}
type AmneziaOptions struct {
JC int
JMin int
JMax int
S1 int
S2 int
H1 uint32
H2 uint32
H3 uint32
H4 uint32
}