projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup local_address in protocol_edge.c
[tinc]
/
src
/
net_socket.c
diff --git
a/src/net_socket.c
b/src/net_socket.c
index
85bc4df
..
97d6c44
100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-43,8
+43,8
@@
int addressfamily = AF_UNSPEC;
int maxtimeout = 900;
int seconds_till_retry = 5;
int addressfamily = AF_UNSPEC;
int maxtimeout = 900;
int seconds_till_retry = 5;
-int udp_rcvbuf =
0
;
-int udp_sndbuf =
0
;
+int udp_rcvbuf =
1024 * 1024
;
+int udp_sndbuf =
1024 * 1024
;
int max_connection_burst = 100;
listen_socket_t listen_socket[MAXSOCKETS];
int max_connection_burst = 100;
listen_socket_t listen_socket[MAXSOCKETS];
@@
-617,7
+617,7
@@
void setup_outgoing_connection(outgoing_t *outgoing) {
if(n)
outgoing->aip = outgoing->ai = get_known_addresses(n);
if(!outgoing->ai) {
if(n)
outgoing->aip = outgoing->ai = get_known_addresses(n);
if(!outgoing->ai) {
- logger(DEBUG_ALWAYS, LOG_
ERR
, "No address known for %s", outgoing->name);
+ logger(DEBUG_ALWAYS, LOG_
DEBUG
, "No address known for %s", outgoing->name);
return;
}
}
return;
}
}
@@
-800,6
+800,11
@@
void try_outgoing_connections(void) {
continue;
}
continue;
}
+ if(!strcmp(name, myself->name)) {
+ free(name);
+ continue;
+ }
+
bool found = false;
for list_each(outgoing_t, outgoing, outgoing_list) {
bool found = false;
for list_each(outgoing_t, outgoing, outgoing_list) {