Skip to content

Commit

Permalink
Merge branch 'master' into extend_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
XomaDev authored May 15, 2024
2 parents c36fde3 + f999c48 commit b33a250
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ If you want to authenticate the clients, before proxying, you can set a `Usernam

> Supply a `true` value to constructor `UsernamePasswordAuthenticator()`, if you also want to prefer `NO_AUTH` mode over Username and password.
For use in junit 5 tests (for Junit 4 use a version < 3.0.0):

```
@RegisterExtension
static SockServerExtension sockServerRule = new SockServerExtension(PROXY_SERVER_PORT);
// or
@RegisterExtension
static SockServerExtension sockServerRule = new SockServerExtension(PROXY_SERVER_PORT, myServerSocketFactory);
```

And that's it!

## Change history
Expand Down

0 comments on commit b33a250

Please # to comment.