Skip to content

Commit

Permalink
Update ProxySettings.java
Browse files Browse the repository at this point in the history
  • Loading branch information
essiembre committed Aug 24, 2024
1 parent f1703eb commit 0af7f5e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package com.norconex.commons.lang.net;

import java.io.Serializable;
import java.net.InetSocketAddress;
import java.net.Proxy;

import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -184,7 +183,6 @@ public Proxy toProxy() {
LOG.warn("Unsupported proxy scheme: '{}'. Defaulting to HTTP.",
scheme);
}
var address = new InetSocketAddress(host.getName(), host.getPort());
return new Proxy(type, address);
return new Proxy(type, host.toInetSocketAddress());
}
}

0 comments on commit 0af7f5e

Please sign in to comment.