Skip to content

Commit

Permalink
Fix FML sniffer #40
Browse files Browse the repository at this point in the history
  • Loading branch information
layou233 authored Jul 17, 2022
1 parent 099501f commit 4227a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/minecraft/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func NewConnHandler(s *config.ConfigProxyService,
protocol,
packet.String(func() string {
if !s.Minecraft.IgnoreFMLSuffix &&
strings.HasSuffix(string(hostname), " FML") {
strings.HasSuffix(string(hostname), "FML") {
return s.Minecraft.RewrittenHostname + " FML"
}
return s.Minecraft.RewrittenHostname
Expand Down

0 comments on commit 4227a78

Please sign in to comment.