xtcp: add configuration to disable assisted addresses in NAT traversal (#4951)

This commit is contained in:
fatedier
2025-08-25 15:52:52 +08:00
committed by GitHub
parent 14253afe2f
commit 80d3f332e1
8 changed files with 63 additions and 11 deletions

View File

@@ -422,6 +422,9 @@ type XTCPProxyConfig struct {
Secretkey string `json:"secretKey,omitempty"`
AllowUsers []string `json:"allowUsers,omitempty"`
// NatTraversal configuration for NAT traversal
NatTraversal *NatTraversalConfig `json:"natTraversal,omitempty"`
}
func (c *XTCPProxyConfig) MarshalToMsg(m *msg.NewProxy) {