package
2.1.2
Repository: https://github.com/mosajjal/sniproxy.git
Documentation: pkg.go.dev

# Functions

GetFreePort returns a random open port.
MakeDecision loops through all the ACLs and makes a decision for the connection.
StartACLs starts all the ACLs that have been configured and registered.

# Constants

Accept shows the indifference of the ACL to the connection.
OriginIP shows that the ACL has decided to proxy the connection through the origin IP rather than sniproxy.
Override shows that the ACL has decided to override the connection and proxy it through the specified DstIP and DstPort.
ProxyIP shows that the ACL has decided to proxy the connection through sniproxy rather than the origin IP.
Reject shows that the ACL has rejected the connection.

# Structs

ConnInfo contains all the information about a connection that is available it also serves as an ACL enforcer in a sense that if IsRejected is set to true the connection is dropped.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
Decision is the type of decision that an ACL can make for each connection info.