Skip to content

Commit a6b1292

Browse files
committed
fix turning SO_REUSEADDR off
1 parent 34794b7 commit a6b1292

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/common-hal/socketpool

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/socketpool/Socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ int common_hal_socketpool_socket_setsockopt(socketpool_socket_obj_t *self, int l
12071207
if (enable) {
12081208
ip_set_option(self->pcb.ip, SOF_REUSEADDR);
12091209
} else {
1210-
ip_set_option(self->pcb.ip, SOF_REUSEADDR);
1210+
ip_reset_option(self->pcb.ip, SOF_REUSEADDR);
12111211
}
12121212
return 0;
12131213
break;

0 commit comments

Comments
 (0)