Fix build env issues with manual build
This commit is contained in:
@@ -45,7 +45,7 @@ struct route {
|
||||
int sink_id;
|
||||
int sink_type;
|
||||
int sink_client;
|
||||
char bind[64];
|
||||
char bind[256];
|
||||
char sink_iface[IFNAMSIZ];
|
||||
int port;
|
||||
int proto;
|
||||
@@ -80,7 +80,7 @@ struct tsink {
|
||||
struct ev ev;
|
||||
struct tsink *next;
|
||||
int sink_id;
|
||||
char bind[64];
|
||||
char bind[256];
|
||||
char iface[IFNAMSIZ];
|
||||
unsigned ifindex; // detects a recreated tun interface
|
||||
int port;
|
||||
@@ -1144,7 +1144,7 @@ static void apply_target_sinks(void)
|
||||
int fd = net_listen(r->bind, r->port, r->proto, r->sink_iface);
|
||||
if (fd < 0) {
|
||||
char msg[128];
|
||||
snprintf(msg, sizeof(msg), "bind %s:%d failed: %s", r->bind, r->port, strerror(errno));
|
||||
snprintf(msg, sizeof(msg), "bind %.64s:%d failed: %s", r->bind, r->port, strerror(errno));
|
||||
if (strcmp(r->state_err, msg))
|
||||
log_warn("sink %d: %s", r->sink_id, msg);
|
||||
snprintf(r->state_err, sizeof(r->state_err), "%s", msg);
|
||||
|
||||
Reference in New Issue
Block a user