We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9f93c commit 5fa84efCopy full SHA for 5fa84ef
pkg/router.go
@@ -117,8 +117,13 @@ func (r Router) handleConnection(client net.Conn) {
117
return
118
}
119
serverAddress := string(serverAddressRaw)
120
+
121
+ // Its common for proxies or mods to append extra data to the server address after a "///" separator. We ignore this for routing.
122
serverAddress = strings.Split(serverAddress, "///")[0]
123
124
+ // Forge's "FML" protocol appends a marker to the end of the server address prefixed with a null character.
125
+ serverAddress = strings.Split(serverAddress, "\x00")[0]
126
127
serverPortRaw := make([]byte, 2)
128
_, err = packetReader.Read(serverPortRaw)
129
if err != nil {
0 commit comments