relay: fix binding to an IP address (bug #39119)