diff options
| author | ruki <[email protected]> | 2023-10-08 09:15:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-08 09:15:02 +0800 |
| commit | 70d1db94e95e8e9aa32d53e993554d90db605c83 (patch) | |
| tree | f94c912d91b9cf3a86234913697ec24f438fee39 /xmake/core/base/socket.lua | |
| parent | 870bb0fc0506a722c07bf778cd90cfad54f9336d (diff) | |
fix socket
Diffstat (limited to 'xmake/core/base/socket.lua')
| -rw-r--r-- | xmake/core/base/socket.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/socket.lua b/xmake/core/base/socket.lua index b9da2e99a..12b3661f5 100644 --- a/xmake/core/base/socket.lua +++ b/xmake/core/base/socket.lua @@ -676,7 +676,7 @@ end -- tostring(socket) function _instance:__tostring() - local rawfd = self:rawfd() or "closed" + local rawfd = self:cdata() and self:rawfd() or "closed" local types = {"tcp", "udp", "icmp"} return string.format("<socket: %s%s/%s>", types[self:type()], self:family() == socket.IPV6 and "6" or "4", rawfd) end |
