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

IPv6 broken? #61

Open
ThatMishakov opened this issue Jan 18, 2020 · 0 comments
Open

IPv6 broken? #61

ThatMishakov opened this issue Jan 18, 2020 · 0 comments

Comments

@ThatMishakov
Copy link

Nemisys API does not seem to be able to authenticate when connecting through IPv6. IP address of Nemisis server is fdff:ff02:: and IP of Nukkit is fdff:ff90::.
I have also tried runing Nukkit locally and while localhost in SynapseAPI config.yaml worked fine, ::1 didn't work either. 172.0.0.1 did not connect at all.

Warning from Nukkit:
21:51:19 [WARN ] Synapse Client has connected to fdff:ff02:0:0:0:0:0:0:10305 21:51:19 [WARN ] [SynapseAPI] Connecting fdff:ff02::0:10305 21:51:19 [WARN ] SynapseEntry<fdff:ff02::0:10305> Async Thread is overloading! TPS: 14.099999999999998 tickUseTime: 71
(and no Login successfull from SynapseAPI)

Errors from Nemisys:
21:51:19 [ALERT] java.lang.NumberFormatException: For input string: "ff90" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:652) at java.base/java.lang.Integer.parseInt(Integer.java:770) at org.itxtech.nemisys.network.SynapseInterface.openClients(SynapseInterface.java:74) at org.itxtech.nemisys.network.SynapseInterface.process(SynapseInterface.java:102) at org.itxtech.nemisys.Server.tick(Server.java:462) at org.itxtech.nemisys.Server.tickProcessor(Server.java:429) at org.itxtech.nemisys.Server.start(Server.java:409) at org.itxtech.nemisys.Server.<init>(Server.java:205) at org.itxtech.nemisys.Nemisys.main(Nemisys.java:53)
(and no client connected successfully)

(When I had ::1 insted of localhost, there were no errors in Nemisys.)

Nemisys server.properties:
#Properties Config file #2020-01-18 09:51:17 motd=Nemisys Proxy server-ip=:: server-port=19132 synapse-ip=:: synapse-port=10305 password=G3z6nWq8cRkFak1o lang=eng async-workers=auto enable-profiling=off profile-report-trigger=20 max-players=20 plus-one-max-count=off dynamic-player-count=off players-per-thread=50 enable-query=on enable-rcon=off rcon.password=zYjUxMzAwM debug=1 enable-synapse-client=off display-stats-in-title=on

SynapseAPI config.yml:
`#Synapse API for Nukkit: config
disable-rak: false
enable: true

entries:

  • server-ip: fdff:ff02::0
    server-port: 10305
    isMainServer: true
    isLobbyServer: true
    transferOnShutdown: true
    password: G3z6nWq8cRkFak1o
    description: Synapse Nukkit Server
    autoConnect: true`

Also, when I didn't have 0 at the end of fdff:ff02::, SynapseAPI would not work at all:
`22:17:07 [INFO ] Enabling SynapseAPI v2.0.0
22:17:07 [ERROR] Throwing
java.lang.RuntimeException: mapping values are not allowed here
in 'string', line 6, column 26:
- server-ip: fdff:ff02::
^

    at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:443) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.Server.enablePlugin(Server.java:735) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.Server.enablePlugins(Server.java:724) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.Server.<init>(Server.java:485) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.Nukkit.main(Nukkit.java:112) ~[nukkit-1.0-SNAPSHOT.jar:?]

Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
in 'string', line 6, column 26:
- server-ip: fdff:ff02::
^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:871) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:199) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:153) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:427) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.utils.Config.parseContent(Config.java:554) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.utils.Config.load(Config.java:160) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.utils.Config.<init>(Config.java:98) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.utils.Config.<init>(Config.java:85) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.utils.Config.<init>(Config.java:81) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.plugin.PluginBase.reloadConfig(PluginBase.java:239) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.plugin.PluginBase.getConfig(PluginBase.java:218) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at org.itxtech.synapseapi.SynapseAPI.loadEntries(SynapseAPI.java:94) ~[?:?]
    at org.itxtech.synapseapi.SynapseAPI.onEnable(SynapseAPI.java:49) ~[?:?]
    at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:117) ~[nukkit-1.0-SNAPSHOT.jar:?]
    at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:439) ~[nukkit-1.0-SNAPSHOT.jar:?]
    ... 4 more

22:17:07 [INFO ] Disabling SynapseAPI v2.0.0`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant