mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-13 09:35:52 +00:00
Fix omitempty for JSON struct fields
Claude-Session: https://claude.ai/code/session_01NxBrtZjwwaJC8uxCNbgmKu
This commit is contained in:
@@ -197,7 +197,7 @@ func TestOpenVPNStaticKeyClientDataPath(t *testing.T) {
|
||||
Mode: ovpn.ModeStaticKey,
|
||||
Network: N.NetworkTCP,
|
||||
Address: []netip.Prefix{netip.MustParsePrefix(clientTunnelAddress + "/30")},
|
||||
PeerAddress: badoption.Addr(netip.MustParseAddr(peerTunnelAddress)),
|
||||
PeerAddress: common.Ptr(badoption.Addr(netip.MustParseAddr(peerTunnelAddress))),
|
||||
Topology: "p2p",
|
||||
StaticKeyPath: staticKeyPath,
|
||||
KeyDirection: "client",
|
||||
@@ -286,7 +286,7 @@ func runOpenVPNStaticKeySelfToSelf(t *testing.T, protocol string) {
|
||||
RemotePort: clientOpenVPNPort,
|
||||
MaxClients: 1,
|
||||
Address: []netip.Prefix{netip.MustParsePrefix(serverTunnelAddress + "/30")},
|
||||
PeerAddress: badoption.Addr(netip.MustParseAddr(clientTunnelAddress)),
|
||||
PeerAddress: common.Ptr(badoption.Addr(netip.MustParseAddr(clientTunnelAddress))),
|
||||
Topology: "p2p",
|
||||
StaticKeyPath: staticKeyPath,
|
||||
KeyDirection: "server",
|
||||
@@ -302,7 +302,7 @@ func runOpenVPNStaticKeySelfToSelf(t *testing.T, protocol string) {
|
||||
Mode: ovpn.ModeStaticKey,
|
||||
Network: protocol,
|
||||
Address: []netip.Prefix{netip.MustParsePrefix(clientTunnelAddress + "/30")},
|
||||
PeerAddress: badoption.Addr(netip.MustParseAddr(serverTunnelAddress)),
|
||||
PeerAddress: common.Ptr(badoption.Addr(netip.MustParseAddr(serverTunnelAddress))),
|
||||
Topology: "p2p",
|
||||
StaticKeyPath: staticKeyPath,
|
||||
KeyDirection: "client",
|
||||
|
||||
Reference in New Issue
Block a user