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

@@ -175,7 +175,7 @@ skynet_socket_nodelay(struct skynet_context *ctx, int id) {
}
int
skynet_socket_udp(struct skynet_context *ctx, const char * addr, int port) {
skynet_socket_udp(struct skynet_context *ctx, const char * addr, int *port) {
uint32_t source = skynet_context_handle(ctx);
return socket_server_udp(SOCKET_SERVER, source, addr, port);
}