4799394
Branches > main > 4799394 > files / src / net / bowmap / server / protocol / serverbound_packets.clj
Bind a port one is not supplied to start-server!
Commit: 4799394f9bb0a386815022084d5f75aae72c3dc5
Parent: 8372250
1 changed file:
src/net/bowmap/server/network/server.clj view file
@@ -6,9 +6,9 @@ [java.net ServerSocket])) (defn start-server!- "Starts a Minecraft server at the supplied port and optional bind address.+ "Starts a Minecraft server at the supplied port and bind address. Returns a channel of connections that is coupled to the server's lifecycle."- [& {:keys! [port] :keys [bind-addr backlog] :or {:backlog 50}}]+ [& {:keys [port bind-addr backlog] :or {:backlog 50 :port 0}}] (let [server-socket (ServerSocket. port backlog bind-addr) connection-chan (chan backlog)] (io-thread