frpc: add parameter nat_hole_server_addr (#3351)

This commit is contained in:
fatedier
2023-03-10 15:51:14 +08:00
committed by GitHub
parent 968ba4d3a1
commit fccd518512
4 changed files with 17 additions and 2 deletions

View File

@@ -35,6 +35,9 @@ type ClientCommonConf struct {
// ServerAddr specifies the address of the server to connect to. By
// default, this value is "0.0.0.0".
ServerAddr string `ini:"server_addr" json:"server_addr"`
// Specify another address of the server to connect for nat hole. By default, it's same with
// ServerAddr.
NatHoleServerAddr string `ini:"nat_hole_server_addr" json:"nat_hole_server_addr"`
// ServerPort specifies the port to connect to the server on. By default,
// this value is 7000.
ServerPort int `ini:"server_port" json:"server_port"`