| ... | @@ -958,9 +958,11 @@ pub fn connectUnproxied(client: *Client, host: []const u8, port: u16, protocol: | ... | @@ -958,9 +958,11 @@ pub fn connectUnproxied(client: *Client, host: []const u8, port: u16, protocol: |
| 958 | return conn; | 958 | return conn; |
| 959 | } | 959 | } |
| 960 | | 960 | |
| 961 | pub const ConnectUnixError = Allocator.Error || std.os.SocketError || error{NameTooLong} || std.os.ConnectError; | 961 | pub const ConnectUnixError = Allocator.Error || std.os.SocketError || error{ NameTooLong, Unsupported } || std.os.ConnectError; |
| 962 | | 962 | |
| 963 | pub fn connectUnix(client: *Client, path: []const u8) ConnectUnixError!*ConnectionPool.Node { | 963 | pub fn connectUnix(client: *Client, path: []const u8) ConnectUnixError!*ConnectionPool.Node { |
| | 964 | if (!net.has_unix_sockets) return error.Unsupported; |
| | 965 | |
| 964 | if (client.connection_pool.findConnection(.{ | 966 | if (client.connection_pool.findConnection(.{ |
| 965 | .host = path, | 967 | .host = path, |
| 966 | .port = 0, | 968 | .port = 0, |