fix repl buffer overrun + use a different port for each game version (#2449)

Fixes #2313
This commit is contained in:
ManDude
2023-04-02 05:57:21 +01:00
committed by GitHub
parent 57a3254668
commit 6f1cb2a0a9
10 changed files with 25 additions and 7 deletions
@@ -197,7 +197,7 @@ Val* Compiler::compile_listen_to_target(const goos::Object& form,
Env* env) {
(void)env;
std::string ip = "127.0.0.1";
int port = DECI2_PORT;
int port = -1;
bool got_port = false, got_ip = false;
for_each_in_list(rest, [&](const goos::Object& o) {