| ... | @@ -1412,7 +1412,9 @@ pub fn connect( | ... | @@ -1412,7 +1412,9 @@ pub fn connect( |
| 1412 | } orelse return client.connectTcp(host, port, protocol); | 1412 | } orelse return client.connectTcp(host, port, protocol); |
| 1413 | | 1413 | |
| 1414 | // Prevent proxying through itself. | 1414 | // Prevent proxying through itself. |
| 1415 | if (std.mem.eql(u8, proxy.host, host) and proxy.port == port and proxy.protocol == protocol) { | 1415 | if (std.ascii.eqlIgnoreCase(proxy.host, host) and |
| | 1416 | proxy.port == port and proxy.protocol == protocol) |
| | 1417 | { |
| 1416 | return client.connectTcp(host, port, protocol); | 1418 | return client.connectTcp(host, port, protocol); |
| 1417 | } | 1419 | } |
| 1418 | | 1420 | |