feat: add client reload on config change

This commit is contained in:
Egor Zavialov
2024-06-01 16:28:15 +09:00
parent 77990c31ef
commit 9568151860
5 changed files with 77 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ type ClientCommonConfig struct {
ServerPort int `json:"serverPort,omitempty"`
// STUN server to help penetrate NAT hole.
NatHoleSTUNServer string `json:"natHoleStunServer,omitempty"`
//
ConfigAutoReload bool `json:"configAutoReload,omitempty"`
// DNSServer specifies a DNS server address for FRPC to use. If this value
// is "", the default DNS will be used.
DNSServer string `json:"dnsServer,omitempty"`