1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-15 23:54:17 +02:00

Update ip address

This commit is contained in:
LinkLeong
2023-05-22 04:32:47 +01:00
parent 2fefee87fa
commit e0e9f97764
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ func (c *systemService) GetDeviceInfo() model.DeviceInfo {
osRelease, _ := file.ReadOSRelease()
m.DeviceModel = osRelease["MODEL"]
m.DeviceSN = osRelease["SN"]
res := httper.Get("http://127.0.0.1"+strconv.Itoa(m.Port)+"/v1/users/status", nil)
res := httper.Get("http://127.0.0.1:"+strconv.Itoa(m.Port)+"/v1/users/status", nil)
init := gjson.Get(res, "data.initialized")
m.Initialized, _ = strconv.ParseBool(init.Raw)