diff options
| author | flysand7 <yyakut.ac@gmail.com> | 2023-11-24 23:57:53 +1100 |
|---|---|---|
| committer | flysand7 <yyakut.ac@gmail.com> | 2023-11-24 23:57:53 +1100 |
| commit | ff0e976ff3dc1f4a783f1e9d93b18f4a1ce34f25 (patch) | |
| tree | 1772651a4763a24f3f68ef54d41c0604ac4119a1 /core/net/socket_linux.odin | |
| parent | 0df1645422071e7a39340d6a8e21602394a0dbf1 (diff) | |
[net]: Fix passing the wrong socket to on linux
Diffstat (limited to 'core/net/socket_linux.odin')
| -rw-r--r-- | core/net/socket_linux.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net/socket_linux.odin b/core/net/socket_linux.odin index 6d3f111d1..ba48959fb 100644 --- a/core/net/socket_linux.odin +++ b/core/net/socket_linux.odin @@ -125,7 +125,7 @@ _create_socket :: proc(family: Address_Family, protocol: Socket_Protocol) -> (An } @(private) -_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (tcp_sock: TCP_Socket, err: Network_Error) { +_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (TCP_Socket, Network_Error) { errno: linux.Errno if endpoint.port == 0 { return 0, .Port_Required |