fix: Browser redirection for 0.0.0.0

Signed-off-by: kushthedude <kushthedude@gmail.com>
This commit is contained in:
kushthedude 2020-02-28 00:22:33 +05:30
parent da2f86a444
commit 52de777437

View File

@ -463,8 +463,11 @@ class RefineClient extends JFrame implements ActionListener {
public void init(String host, int port) throws Exception {
uri = new URI("http://" + host + ":" + port + "/");
String cleanedHost = host;
if("0.0.0.0".equals(host)) {
cleanedHost = "localhost";
}
uri = new URI("http://" + cleanedHost + ":" + port + "/");
openBrowser();
}