Skip to content

Commit

Permalink
domain 조건 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Lseoksee committed Jun 12, 2023
1 parent c76dfe3 commit f40f6b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified nodejs_server/start.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions res/src/main/java/seok/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void start() throws Exception {
ipAddr();
continue;
} else if (input.equals("web") && outIpAddr != null && domain != null) {
if (domain.equals(":"+port)) {
if (domain.equals(":"+port) || domain.equals("")) {
Desktop.getDesktop().browse(new URI("http://" + outIpAddr));
} else {
Desktop.getDesktop().browse(new URI("http://" + domain));
Expand All @@ -71,7 +71,7 @@ public synchronized void ipAddr() throws Exception {
if (outIpAddr != null) {
System.out.println("내부 ip주소: " + inIpAddr);
System.out.println("외부 ip주소: " + outIpAddr);
if (!domain.equals(":"+port)) {
if (!domain.equals(":"+port) && !domain.equals("")) {
System.out.println("연결된 도메인: " + domain);
}
System.out.println("포트번호: " + port);
Expand Down Expand Up @@ -101,7 +101,7 @@ public synchronized void ipAddr() throws Exception {

System.out.println("내부 ip주소: " + inIpAddr);
System.out.println("외부 ip주소: " + outIpAddr);
if (domain.equals(":"+port)) {
if (domain.equals(":"+port) || domain.equals("")) {
Desktop.getDesktop().browse(new URI("http://" + outIpAddr));
} else {
System.out.println("연결된 도메인: " + domain);
Expand Down

0 comments on commit f40f6b0

Please sign in to comment.