]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
only complain if the user sets "interface = foo"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 24 Dec 2024 12:42:01 +0000 (07:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 Dec 2024 12:42:32 +0000 (07:42 -0500)
src/lib/bio/fd_open.c

index 059163f8343fc12f8c829460ee27856a8c0494a7..fb066f596fa48d1282bbc88589d861cd8856275c 100644 (file)
@@ -684,6 +684,8 @@ static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, UNUSED fr_bio_fd_con
  */
 static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, fr_bio_fd_config_t const *cfg)
 {
+       if (!my->info.socket.inet.ifindex) return 0;
+
        fr_strerror_const("Bind to interface is not supported on this platform");
        return -1;
 }