ServerSync

ServerSync

48.5k Downloads

[Server][Feature Request] Create connection whitelist/blacklist ability

rheimus opened this issue ยท 6 comments

commented

Might as well allow the server to refuse connections

commented

Good plan in case someone attempt too many downloads.

commented

A suggestion: utilize the banned-ips.json and whitelist.json of the minecraft server itself, if possible. (Griefers likely to abuse something like this = also likely candidates for bans... If an IP is banned from the server, maybe this should also treat it as banned.)

commented

Tis a good idea, could add a check for the existence of said files and pull in values present

commented

Work to be done:

  • #100 Implement a file manager class (sanity)
  • Implement knowledge of Minecraft and its folder structure
  • Add a section to the SS config to allow users to utilize minecrafts banned-ips/whitelist.json and/or the SS config (merge the two lists, might need an adapter)
  • Implement server-side connection handling
commented

Added support for using Minecrafts banned-ips.json. You should be able to either add entries manually to it or use server commands to ban addresses.
e.g. /ban-ip 127.0.0.1

Still need to plug in the whitelist.json file.

commented

Closing in favor of #216