|
|
@@ -47,6 +47,7 @@ type ServerNode struct {
|
|
|
State int `yaml:state`
|
|
|
Invisible int `yaml:invisible`
|
|
|
STimeStamp uint64 `yaml:STimeStamp`
|
|
|
+ IsIos bool `yaml:isIos`
|
|
|
}
|
|
|
|
|
|
type WhiteListNode struct {
|
|
|
@@ -91,6 +92,7 @@ func (this *ServerListNode) GetServerById(c *gin.Context, nodeId string) *Server
|
|
|
return nil
|
|
|
}
|
|
|
subplatform := c.DefaultQuery("sub_platform", "") ///default 0
|
|
|
+ //platform := c.DefaultQuery("platform", "") ///default 0
|
|
|
bBlockPlatform := tmpConfig.IsPlatformBlackList(subplatform)
|
|
|
bWhite := tmpConfig.IsWhiteList("", ip, resver)
|
|
|
|
|
|
@@ -301,7 +303,6 @@ func (this *ServerListNode) loadConfig() {
|
|
|
//reset and clear
|
|
|
this.fileInfo = tmpFileInfo
|
|
|
this.serverNormalList = []*ServerNode{}
|
|
|
- this.serverNormalList = []*ServerNode{}
|
|
|
this.serverSpeList = []*ServerNode{}
|
|
|
this.serverMapList = map[int]*ServerNode{}
|
|
|
//whitelist
|