From 5874e8b47eafc007bd10b48b0ad452ea6b7ba0f2 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 26 Dec 2024 15:25:48 +0100 Subject: [PATCH] fix --- README.md | 13 ------------- .../m724/autopeerer/server/MyWebsocketServer.java | 5 ----- 2 files changed, 18 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 626a39d..0000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Setup -1. Get the `-server.jar` or `-client.jar` and make a new directory for it -2. Run the JAR, then stop it -3. Configure in `config` -4. Now run the JAR. Done! - -# Client config -- `remote` the autopeerer server websocket URL -- `wireguard.directory` directory for WireGuard config files -- `bird.directory` directory for BIRD config files -- `link-local` the link local for peering -- `stack.ipv4` IPv4 availability. Values: `no`, `yes`, `restricted` -- `stack.ipv6` same but for IPv6 \ No newline at end of file diff --git a/src/main/java/eu/m724/autopeerer/server/MyWebsocketServer.java b/src/main/java/eu/m724/autopeerer/server/MyWebsocketServer.java index 8794134..14a8a8f 100644 --- a/src/main/java/eu/m724/autopeerer/server/MyWebsocketServer.java +++ b/src/main/java/eu/m724/autopeerer/server/MyWebsocketServer.java @@ -1,15 +1,10 @@ package eu.m724.autopeerer.server; -import eu.m724.autopeerer.common.packet.s2c.PingRequestPacket; -import eu.m724.autopeerer.common.packet.s2c.SessionRequestPacket; -import inet.ipaddr.IPAddressString; import org.java_websocket.WebSocket; import org.java_websocket.handshake.ClientHandshake; import org.java_websocket.server.WebSocketServer; -import java.net.InetAddress; import java.net.InetSocketAddress; -import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Map;