From b808915f5996ee97281825e2c7039561d801813e Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 13 Apr 2025 15:16:59 +0200 Subject: Use the normal dht port and rename some metrics --- src/proto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/proto.c') 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); -- cgit v1.2.3