Skip to content

Commit

Permalink
bug in way interceptors work
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Summitt committed Jul 7, 2023
1 parent 2852453 commit 961039e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NonHTTPProxy/src/josh/nonHttp/SendData.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ public void run() {
// Send things to the interceptor if it is enabled
if (SERVER.isInterceptOn()) {
if (SERVER.getIntercetpDir() == SERVER.INTERCEPT_BOTH ||
(this.Name.equals("c2s") && SERVER.getIntercetpDir() == SERVER.INTERCEPT_C2S) ||
(this.Name.equals("s2c") && SERVER.getIntercetpDir() == SERVER.INTERCEPT_S2C)) {
(this.Name.contains("c2s") && SERVER.getIntercetpDir() == SERVER.INTERCEPT_C2S) ||
(this.Name.contains("s2c") && SERVER.getIntercetpDir() == SERVER.INTERCEPT_S2C)) {
// Here we format the data before sending it to the interceptor
if (SERVER.isPythonOn()) {
tmp = pm.preIntercept(tmp, isC2S);
Expand Down

0 comments on commit 961039e

Please sign in to comment.