Skip to content

Commit

Permalink
Switch to less-common default port
Browse files Browse the repository at this point in the history
Bonus: if you squint really hard it looks like ASCII
  • Loading branch information
newsch committed Aug 30, 2020
1 parent 95c24c1 commit 1e4c0df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void parse_args(int argc, char *argv[], arguments_t *arguments) {
server = arg_strn("s", "server", "<SERVER>", 0, 1,
"address of server to connect to"),
port = arg_strn("p", "port", "<PORT>", 0, 1,
"port of server to connect to (default 5000)"),
"port of server to connect to (default 45011)"),
file = arg_filen(NULL, NULL, "[FILE]", 0, 1,
"filepath for read/write ('-' to read from stdin)"),
end = arg_end(20),
Expand Down
2 changes: 1 addition & 1 deletion src/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
fd_set testfds, clientfds;
char *msg_buf;
size_t msg_size;
int port = 5000;
int port = 45011;
int fd;
int sockfd;
FILE *sockstream;
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ int main(int argc, char *argv[]) {
pthread_t tid;

/* Socket settings */
int port = 5000;
const int port = 45011;
listenfd = socket(AF_INET, SOCK_STREAM, 0);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
Expand Down

0 comments on commit 1e4c0df

Please sign in to comment.