Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed Sep 5, 2024
1 parent 0022c2f commit c430ab1
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/main/java/com/mageddo/dnsproxyserver/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,9 @@ void setupLogs() {
}

void startContext() {
this.createContext();

// start webserver
// start dns server
this.context.start();
}

private void createContext() {
this.context = Context.create();
Context.create()
.start()
;
}

void checkExitCommands() {
Expand Down Expand Up @@ -122,10 +116,6 @@ int getDnsServerPort() {
return getConfig().getDnsServerPort();
}

Context getContext() {
return context;
}

static class SystemExitException extends RuntimeException {
public SystemExitException(String reason) {
super(reason);
Expand Down

0 comments on commit c430ab1

Please sign in to comment.