Fix "Don't serve requests" option, update version number, fix typo

This commit is contained in:
Dmitry Isaenko 2020-09-25 02:56:09 +03:00
parent adabfbe860
commit 22b18710a5
4 changed files with 8 additions and 3 deletions

View file

@ -90,7 +90,7 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7321", GROUP="plug
root # udevadm control --reload-rules && udevadm trigger root # udevadm control --reload-rules && udevadm trigger
``` ```
Please note: you may have to change 'plugdev' group from example above to the different one. It's depends on you linux distro. Please note: you may have to change 'plugdev' group from example above to the different one. It depends on you linux distro.
##### Raspberry Pi ##### Raspberry Pi
@ -225,6 +225,7 @@ To convert files of any locale to readable format (and vise-versa) you can use t
## Support this app ## Support this app
If you like this app, just give a star. If you like this app, just give a star.
If you want to make a donation*, please see below: If you want to make a donation*, please see below:

View file

@ -8,7 +8,7 @@
<name>NS-USBloader</name> <name>NS-USBloader</name>
<artifactId>ns-usbloader</artifactId> <artifactId>ns-usbloader</artifactId>
<version>4.3-SNAPSHOT</version> <version>4.4-SNAPSHOT</version>
<url>https://github.com/developersu/ns-usbloader/</url> <url>https://github.com/developersu/ns-usbloader/</url>
<description> <description>

View file

@ -189,6 +189,10 @@ public class NetworkSetupValidator {
private void parsePort(String hostPortNum) throws Exception{ private void parsePort(String hostPortNum) throws Exception{
try { try {
this.hostPort = Integer.parseInt(hostPortNum); this.hostPort = Integer.parseInt(hostPortNum);
if (doNotServe)
return;
serverSocket = new ServerSocket(hostPort); serverSocket = new ServerSocket(hostPort);
logPrinter.print("NET: Using defined port number: " + hostPort, EMsgType.PASS); logPrinter.print("NET: Using defined port number: " + hostPort, EMsgType.PASS);
} }

View file

@ -32,7 +32,7 @@ import java.util.ResourceBundle;
public class NSLMain extends Application { public class NSLMain extends Application {
public static final String appVersion = "v4.3"; public static final String appVersion = "v4.4";
public static boolean isCli; public static boolean isCli;
@Override @Override