Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置文件动态加载不正常 #66

Closed
FunnyShadow opened this issue Nov 28, 2022 · 9 comments
Closed

配置文件动态加载不正常 #66

FunnyShadow opened this issue Nov 28, 2022 · 9 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@FunnyShadow
Copy link

如下配置内容

{
  "Services": [
    {
      "Name": "XiaoSpeed-Hypixel",
      "TargetAddress": "mc.hypixel.net",
      "TargetPort": 25565,
      "Listen": 25565,
      "Flow": "multiple",
      "IPAccess": {
        "Mode": ""
      },
      "Minecraft": {
        "EnableHostnameRewrite": true,
        "OnlineCount": {
          "Max": 2022,
          "Online": -1,
          "EnableMaxLimit": false
        },
        "IgnoreFMLSuffix": true,
        "NameAccess": {
          "Mode": "allow",
          "ListTags": ["username"]
        },
        "AnyDestSettings": {},
        "MotdFavicon": "{DEFAULT_MOTD}",
        "MotdDescription": "§d小蝌蚪的加速IP!§9 XiaoSpeed-Hypixel §e Link Start! \n        §6Kurun加速线路"
      },
      "TLSSniffing": {
        "RejectNonTLS": false
      },
      "Outbound": {
        "Type": ""
      }
    },
    {
      "Name": "XiaoSpeed-Mcci",
      "TargetAddress": "play.mccisland.net",
      "TargetPort": 25565,
      "Listen": 25564,
      "Flow": "multiple",
      "IPAccess": {
        "Mode": ""
      },
      "Minecraft": {
        "EnableHostnameRewrite": true,
        "OnlineCount": {
          "Max": 2022,
          "Online": -1,
          "EnableMaxLimit": false
        },
        "IgnoreFMLSuffix": true,
        "NameAccess": {
          "Mode": "allow",
          "ListTags": ["username"]
        },
        "AnyDestSettings": {},
        "MotdFavicon": "{DEFAULT_MOTD}",
        "MotdDescription": "§d小蝌蚪的加速IP!§9 XiaoSpeed-Mcci §e Link Start! \n         §6Kurun加速线路"
      },
      "TLSSniffing": {
        "RejectNonTLS": false
      },
      "Outbound": {
        "Type": ""
      }
    }
  ],
  "Lists": {}
}
  • 如果使用热重载,则会出现报错

  • 如果使用冷重载,则可以正常使用

@FunnyShadow
Copy link
Author

QQ截图20221128124428
报错信息

@OPNetworkLOL
Copy link

don't worry.
实际上是加载成功了的,只不过重载了两次...

@FunnyShadow
Copy link
Author

但是没法正常加入

@OPNetworkLOL
Copy link

请问你需要白名单吗

@FunnyShadow
Copy link
Author

需要
已经写入了List配置了(这儿没写是因为隐私问题)

@OPNetworkLOL
Copy link

建议换个系统(,例如windows,或者其他发行版的linux
我总感觉你配置文件填写错了但是我又不清楚你是怎么写的

@FunnyShadow
Copy link
Author

是Debian 11

@OPNetworkLOL
Copy link

OPNetworkLOL commented Nov 28, 2022

是Debian 11

尝试使用Centos,Ubuntu或其他,或者将完整配置文件放在这(包括Lists),但id可以换成其他的,例如"Player"
正常情况下只会报错一次但随后就会正常重载

@layou233 layou233 added help wanted Extra attention is needed question Further information is requested labels Nov 29, 2022
@LiteQwQ
Copy link

LiteQwQ commented Dec 18, 2022

可以看看我提交的 #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants