Skip to content

Commit b02459a

Browse files
Merge pull request #62 from kumy/ipv6
Listen on any IP type by default (IPv6 and IPv4
2 parents d0c5b17 + a7e0d16 commit b02459a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ AsyncServer::AsyncServer(IPv6Address addr, uint16_t port) : _port(port), _noDela
15021502
#endif
15031503

15041504
AsyncServer::AsyncServer(uint16_t port) : _port(port), _noDelay(false), _pcb(0), _connect_cb(0), _connect_cb_arg(0) {
1505-
_addr.type = IPADDR_TYPE_V4;
1505+
_addr.type = IPADDR_TYPE_ANY;
15061506
_addr.u_addr.ip4.addr = INADDR_ANY;
15071507
}
15081508

0 commit comments

Comments
 (0)