Merge pull request #2337 from kushthedude/uri
fix: Browser redirection for 0.0.0.0
This commit is contained in:
commit
712262091b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user