-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Milestone
Description
Currently we can apply policy to verify the upstream address
Lines 70 to 81 in e5b291b
| if p.Policy != nil { | |
| proxyHeaderPolicy, err = p.Policy(conn.RemoteAddr()) | |
| if err != nil { | |
| // can't decide the policy, we can't accept the connection | |
| conn.Close() | |
| return nil, err | |
| } | |
| // Handle a connection as a regular one | |
| if proxyHeaderPolicy == SKIP { | |
| return conn, nil | |
| } | |
| } |
I can create a PR if the feature is okay to be implemented.
Reactions are currently unavailable