mirror of
https://github.com/swissmakers/wireguard-manager.git
synced 2026-04-17 09:43:22 +02:00
Fix endpoint address in InitDB
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user