mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2026-02-03 13:03:24 +00:00
Add Global Settings into DB initilization step
This commit is contained in:
@@ -269,7 +269,8 @@ func MachineIPAddresses() echo.HandlerFunc {
|
||||
if err != nil {
|
||||
log.Warn("Cannot get machine public ip address: ", err)
|
||||
} else {
|
||||
interfaceList = append(interfaceList, publicInterface)
|
||||
// prepend public ip to the list
|
||||
interfaceList = append([]model.Interface{publicInterface}, interfaceList...)
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusOK, interfaceList)
|
||||
|
||||
Reference in New Issue
Block a user