Merge branch 'random-port'

This commit is contained in:
Simon Kelley
2021-03-17 20:42:21 +00:00
10 changed files with 348 additions and 276 deletions

View File

@@ -819,7 +819,8 @@ char *parse_server(char *arg, union mysockaddr *addr, union mysockaddr *source_a
if (interface_opt)
{
#if defined(SO_BINDTODEVICE)
safe_strncpy(interface, interface_opt, IF_NAMESIZE);
safe_strncpy(interface, source, IF_NAMESIZE);
source = interface_opt;
#else
return _("interface binding not supported");
#endif