-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add command line option -server.bindaddress
This allows to specify the binding address of the fls in addition to the port. If nothing is specified the wildcard 0.0.0.0 is used, that assumes to listen on all available addresses. Usage: -server.bindaddress=192.168.123.123 This should also work with ipv6 addresses, however I cannot test this at the moment.
- Loading branch information
Jens Schmidt
committed
Jun 29, 2022
1 parent
8467b7d
commit 15c8f23
Showing
5 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...eclipse.passage.lic.net/src/org/eclipse/passage/lic/internal/net/connect/BindAddress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022, 2022 IILS mbH | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* IILS mbH - implementation to specify server listen address | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.net.connect; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* @since 2.5 | ||
*/ | ||
public final class BindAddress extends CliParameter<String> { | ||
|
||
/** | ||
* @since 2.5 | ||
*/ | ||
public BindAddress() { | ||
super("0.0.0.0"); //$NON-NLS-1$ | ||
} | ||
|
||
public BindAddress(String lazy) { | ||
super(lazy); | ||
} | ||
|
||
public BindAddress(String[] sources, String lazy) { | ||
super(sources, lazy); | ||
} | ||
|
||
@Override | ||
public String key() { | ||
return "server.bindaddress"; //$NON-NLS-1$ | ||
} | ||
|
||
@Override | ||
protected Optional<String> parse(String value) { | ||
return Optional.of(value); | ||
} | ||
|
||
} |