Merge pull request #2337 from kushthedude/uri

fix: Browser redirection for 0.0.0.0
This commit is contained in:
Antonin Delpeuch 2020-03-01 11:10:36 +00:00 committed by GitHub
commit 712262091b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}