Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Apr 20, 2017
1 parent a0020be commit d7af588
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/at/stefl/ptbridge/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,14 @@

public class Main {

public static final String DEFAULT = "eth0 192.168.15.101:38000 cisco";
public static final String USAGE = "usage: <ptbridge> [<interface> <pt_ip>:<pt_port> <password>]\n\ndefault: " + DEFAULT;
public static final String USAGE = "usage: ptbridge <interface> <pt_ip>:<pt_port> <password>";

public static void main(String[] args) throws Throwable {
String interfaze;
InetAddress address;
int port;
String password;

if (args.length == 0) {
args = DEFAULT.split("[ \t]+");
}

try {
interfaze = args[0];
String[] tmp = args[1].split(":");
Expand Down Expand Up @@ -97,4 +92,4 @@ public void stateChanged(PTMPState newState, PTMPState oldState) {
ethernetTraverser.close();
}

}
}

0 comments on commit d7af588

Please sign in to comment.