Tunnel: Remove UNKNOWN state
It's never used. Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
1 parent
11f851abf8
commit
0ab3e29432
4 files changed
+1
-10
No files matched your search
@@ -35,8 +35,6 @@ public final class WgQuickBackend implements Backend {
|
||||
}
|
||||
|
||||
private static State resolveState(final State currentState, State requestedState) {
|
||||
if (requestedState == State.UNKNOWN)
|
||||
throw new IllegalArgumentException("Requested unknown state");
|
||||
if (requestedState == State.TOGGLE)
|
||||
requestedState = currentState == State.UP ? State.DOWN : State.UP;
|
||||
return requestedState;
|
||||
|
||||
Reference in new issue
Block a user