Skip to content

Commit c36fde3

Browse files
committed
add server.stop()
1 parent f6ab16f commit c36fde3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ It is a continuation of https://github.com/damico/java-socks-proxy-server.
2121
```java
2222
// start serving clients on port 1234
2323
SocksServer server = new SocksServer(1234).start();
24+
...
25+
server.stop(); // stop serving any new proxy requests
2426
```
2527

2628
Or you can supply your own `ServerSocketFactory`:

0 commit comments

Comments
 (0)