summaryrefslogtreecommitdiffstatshomepage
path: root/examples/usercmodule/cppexample/examplemodule.c
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2024-02-22 01:09:05 +0000
committerDamien George <damien@micropython.org>2024-02-26 12:34:59 +1100
commitd2bcb8597e88fccd496b6b0e358347f4bf6a15da (patch)
tree8b6d2858396600ed87c49a5a95295131ccae5e01 /examples/usercmodule/cppexample/examplemodule.c
parent8547a782750c12a163e0cd022fefc2aaaa4b1bb7 (diff)
downloadmicropython-d2bcb8597e88fccd496b6b0e358347f4bf6a15da.tar.gz
micropython-d2bcb8597e88fccd496b6b0e358347f4bf6a15da.zip
extmod/modlwip: Add back support for empty IP addresses.
Prior to commit 628abf8f25a7705a2810fffe2ca6ae652c532896 which added IPv6 support, binding a socket with s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(("", PORT)) was possible. But, the empty string is not regarded as a valid IP address by lwip. This commit adds a special case for the empty IP string, restoring the previous CPython-compatible behaviour. Signed-off-by: Felix Dörre <felix@dogcraft.de>
Diffstat (limited to 'examples/usercmodule/cppexample/examplemodule.c')
0 files changed, 0 insertions, 0 deletions