summaryrefslogtreecommitdiff
path: root/tests/modules/socket/udp/echo_client.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-04 22:23:24 +0800
committerruki <[email protected]>2022-04-04 22:23:24 +0800
commiteb4ed40168b3e2e309bdc1fbe6ba826d7c101905 (patch)
treee340f75163742ecf847388b1b61bf849e41adbfb /tests/modules/socket/udp/echo_client.lua
parent0a6a66d6a1b04c92a66c9be486a6f65396bd4ca4 (diff)
modify port
Diffstat (limited to 'tests/modules/socket/udp/echo_client.lua')
-rw-r--r--tests/modules/socket/udp/echo_client.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/socket/udp/echo_client.lua b/tests/modules/socket/udp/echo_client.lua
index f46ae4716..0d67afeb5 100644
--- a/tests/modules/socket/udp/echo_client.lua
+++ b/tests/modules/socket/udp/echo_client.lua
@@ -2,7 +2,7 @@ import("core.base.socket")
function main(data)
local addr = "127.0.0.1"
- local port = 9001
+ local port = 9091
local sock = socket.udp()
local send = sock:sendto(data or "hello xmake!", addr, port, {block = true})
print("%s: send to %s:%d %d bytes!", sock, addr, port, send)