Skip to content

Commit

Permalink
Release v0.15 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
3dgiordano authored Oct 26, 2022
1 parent 79c7d86 commit 59cecbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use the emulator as maven dependency include in `pom.xml`:
<dependency>
<groupId>com.github.blazemeter</groupId>
<artifactId>dm3270</artifactId>
<version>0.14-lib-lib</version>
<version>0.15-lib</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>dm3270-lib</artifactId>
<!-- This version has no relation to the released version since the release version is extracted
from git tag by Travis -->
<version>0.14</version>
<version>0.15</version>

<name>${project.artifactId}</name>
<description>This is a trimmed down version of https://github.com/dmolony/dm3270 to be used as
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/bytezone/dm3270/telnet/TelnetCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public TelnetCommand(TelnetState state, byte[] buffer, int length) {
} else if (type == TelnetSubcommand.START_TLS) {
commandType = CommandType.START_TLS;
} else {
throw new InvalidParameterException(
String.format("Unknown telnet command type: %02X %02X%n", command, type));
commandType = null;
}
} else {
throw new InvalidParameterException("Buffer incorrect length");
Expand Down Expand Up @@ -111,6 +110,8 @@ public void process(Screen screen) {
boolean preference = telnetState.doBinary(); // preference
reply[1] = preference ? WILL : WONT;
telnetState.setDoesBinary(preference); // set actual
} else if (commandType == null) {
reply[1] = WONT;
}

setReply(new TelnetCommand(telnetState, reply));
Expand Down

0 comments on commit 59cecbf

Please sign in to comment.