Skip to content

BungeeCord hotfix for DynDNS support. As BungeeCord is not made for dynamic IPs, it can lead to connection issues when using DynDNS. This attempts to fix this.

License

Notifications You must be signed in to change notification settings

vtroxi/BungeeCord

 
 

Repository files navigation

BungeeCord hotfix for DynDNS support

This is a simple hotfix for an issue, I had when running BungeeCord with subservers that were using DynDNS.

BungeeCord initially resolves the underlying IP of a server's hostname assuming that it does not change afterwards. This leads to servers becoming unreachable, after the dynamic IP address has changed.

This fix automatically updates all stored ServerInfos after a connection attempt has failed, thus storing the new ip address of each server and solving the connection issue.

Modifications:

  • The connect(final ServerConnectRequest request) method in UserConnection has been changed to update stored IPs
  • This update happens via the ProxyConfig interface and is implemented as updateServerIPs() in the Configuration class

Please note that this is a fix I made quickly for my own server and is probably not the perfect solution.

About

BungeeCord hotfix for DynDNS support. As BungeeCord is not made for dynamic IPs, it can lead to connection issues when using DynDNS. This attempts to fix this.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.5%
  • Other 0.5%