fix: Browser redirection for 0.0.0.0
Signed-off-by: kushthedude <kushthedude@gmail.com>
This commit is contained in:
parent
da2f86a444
commit
52de777437
@ -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