Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Sep 26, 2023
1 parent bbd8e8e commit 47e2415
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rxlib/src/main/java/org/rx/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ public void addWhiteList(InetAddress endpoint) {
if (conf.pcapSourceIp != null
&& InetAddress.getByName(conf.pcapSourceIp).equals(e.getSource().getAddress())) {
log.info("pcap pack {}", e.getSource());
if (conf.pcapUdpDirect) {
e.setUpstream(new Upstream(dstEp));
return;
}
}
// if (conf.pcap2socks && e.getSource().getAddress().isLoopbackAddress()) {
// Cache<String, Boolean> cache = Cache.getInstance(Cache.MEMORY_CACHE);
Expand Down

0 comments on commit 47e2415

Please sign in to comment.