diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-04-13 15:16:59 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-04-13 15:16:59 +0200 |
| commit | b808915f5996ee97281825e2c7039561d801813e (patch) | |
| tree | 53915f2e1de17898aeb45dadf18a54f492cb6ee4 /src/proto.c | |
| parent | 3908d4dd7bea83eb9ee352fbf68d8a8ec47af450 (diff) | |
Use the normal dht port and rename some metrics
Diffstat (limited to 'src/proto.c')
| -rw-r--r-- | src/proto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/proto.c b/src/proto.c index d84d84e..c103c05 100644 --- a/src/proto.c +++ b/src/proto.c @@ -454,7 +454,7 @@ void proto_begin(struct dht* dht, time_t now, struct message** output, const str } struct sockaddr_in bindAddr = {0}; bindAddr.sin_family = AF_INET; - bindAddr.sin_port = htons(6886); + bindAddr.sin_port = htons(6881); bindAddr.sin_addr.s_addr = htonl(INADDR_ANY); if(bind(dht->sfd, (struct sockaddr*)&bindAddr, sizeof(struct sockaddr_in)) != 0) { err("Bind failed"); @@ -468,7 +468,8 @@ void proto_begin(struct dht* dht, time_t now, struct message** output, const str hints.ai_flags = AI_NUMERICSERV; struct addrinfo* res; - int rc = getaddrinfo("router.bittorrent.com", "6881", &hints, &res); + // int rc = getaddrinfo("router.bittorrent.com", "6881", &hints, &res); + int rc = getaddrinfo("jnsn.dev", "6881", &hints, &res); if(rc != 0) { err("Failed getting the bootstrap ip: %s", gai_strerror(rc)); exit(EXIT_FAILURE); |
