-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support tor w/either Netlayer or direct bind to SOCKS5 data port
- Loading branch information
Showing
8 changed files
with
377 additions
and
154 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
22 changes: 22 additions & 0 deletions
22
p2p/src/main/java/haveno/network/p2p/network/DirectBindTor.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,22 @@ | ||
package haveno.network.p2p.network; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.berndpruenster.netlayer.tor.Tor; | ||
|
||
@Slf4j | ||
public class DirectBindTor extends TorMode { | ||
|
||
public DirectBindTor() { | ||
super(null); | ||
} | ||
|
||
@Override | ||
public Tor getTor() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getHiddenServiceDirectory() { | ||
return null; | ||
} | ||
} |
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
Oops, something went wrong.