mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-05-24 00:24:06 +03:00
Fix endpoint address in InitDB
This commit is contained in:
parent
1992af5db5
commit
f79b52ac2b
2 changed files with 2 additions and 5 deletions
|
@ -95,7 +95,7 @@ func InitDB() error {
|
|||
}
|
||||
|
||||
globalSetting := new(model.GlobalSetting)
|
||||
globalSetting.EndpointAddress = fmt.Sprintf("%s:%d", publicInterface.IPAddress, defaultServerPort)
|
||||
globalSetting.EndpointAddress = publicInterface.IPAddress
|
||||
globalSetting.DNSServers = []string{defaultDNS}
|
||||
globalSetting.MTU = defaultMTU
|
||||
globalSetting.PersistentKeepalive = defaultPersistentKeepalive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue