From 6d5090b11e4c03536640c9aed1daa0f574aaa652 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 7 Mar 2021 16:59:53 +0300 Subject: [PATCH] typo --- tpws/tpws.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tpws/tpws.c b/tpws/tpws.c index 730a6ea..270de1a 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -505,9 +505,9 @@ static bool find_listen_addr(struct sockaddr_storage *salisten, const char *bind if (getifaddrs(&addrs)<0) return false; - // ipv6 preference order - // bindll=1 : link-local - // bindll=0 : private,global,link-local + // for ipv6 preference order + // bind-linklocal-1 : link-local,any + // bind-linklocal=0 : private,global,link-local for(int pass=0;pass<3;pass++) { a = addrs; @@ -851,7 +851,7 @@ int main(int argc, char *argv[]) { // in linux strange behaviour was observed // just after ifup and address assignment there's short window when bind() can't bind to addresses got from getifaddrs() - // it does not happen to transparent sockets because they cant bind to any non-existend ip + // it does not happen to transparent sockets because they can bind to any non-existend ip // also only ipv6 seem to be buggy this way if (errno==EADDRNOTAVAIL && params.proxy_type!=CONN_TYPE_TRANSPARENT && list[i].bind_wait_ip_left) {