chore: Use API to create windows firewall rule

This commit is contained in:
Larvan2
2023-05-30 20:52:28 +08:00
committed by wwqgtxx
parent 41af94ea66
commit 1120c8185d
3 changed files with 16 additions and 14 deletions

View File

@ -67,7 +67,7 @@ type WireGuardPeerOption struct {
PublicKey string `proxy:"public-key,omitempty"`
PreSharedKey string `proxy:"pre-shared-key,omitempty"`
Reserved []uint8 `proxy:"reserved,omitempty"`
AllowedIPs []string `proxy:"allowed_ips,omitempty"`
AllowedIPs []string `proxy:"allowed-ips,omitempty"`
}
type wgSingDialer struct {