Skip to content

Commit 40d717f

Browse files
Use Default Port
1 parent ffe0c9e commit 40d717f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libnethack_client/include/nhclient.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
# include <jansson.h>
1919

20-
# define DEFAULT_PORT 53430
21-
2220
extern struct nh_window_procs client_windowprocs;
2321
extern int current_game;
2422
extern jmp_buf ex_jmp_buf;

libnethack_common/include/nethack_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
# include "nethack_types.h"
99

10+
# define DEFAULT_PORT 53430
11+
1012
# ifdef NETHACK_CLIENT_H_IN_LIBNETHACK_CLIENT
1113
# define EXPORT(x) AIMAKE_EXPORT(x)
1214
# else

nethack/src/netgame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ netgame(void)
714714
servlist = NULL;
715715
server = &localserver;
716716
localserver.hostname = strdup("localhost");
717-
localserver.port = 63463;
717+
localserver.port = DEFAULT_PORT;
718718
if (!get_username_password(&localserver))
719719
goto finally;
720720
} else {

0 commit comments

Comments
 (0)