udp socket bugfix (#1640)

Co-authored-by: chenkete <kete.chen@centurygame.com>
This commit is contained in:
CKT
2022-09-03 20:51:19 +08:00
committed by GitHub
parent 01b5d67b11
commit 2a8c095e38
5 changed files with 7 additions and 6 deletions

View File

@@ -2070,7 +2070,7 @@ socket_server_userobject(struct socket_server *ss, struct socket_object_interfac
// UDP
int
socket_server_udp(struct socket_server *ss, uintptr_t opaque, const char * addr, int port) {
socket_server_udp(struct socket_server *ss, uintptr_t opaque, const char * addr, int *port) {
int fd;
int family;
if (port != 0 || addr != NULL) {