Skip to content

Commit afa328f

Browse files
authored
Merge pull request #19 from Smuerdt/patch-1
Use protocol header if policy is set to REQUIRE
2 parents f0371d3 + 4090ecb commit afa328f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (p *Conn) readHeader() error {
181181
case REJECT:
182182
// this connection is not allowed to send one
183183
return ErrSuperfluousProxyHeader
184-
case USE:
184+
case USE, REQUIRE:
185185
if p.Validate != nil {
186186
err = p.Validate(header)
187187
if err != nil {

0 commit comments

Comments
 (0)