diff --git a/pkg/Proxies/Constants.go b/pkg/Proxies/Constants.go new file mode 100644 index 0000000..9e83aaf --- /dev/null +++ b/pkg/Proxies/Constants.go @@ -0,0 +1,10 @@ +package Proxies + +import "github.com/shoriwe/FullProxy/pkg/ConnectionControllers" + +func Authenticate(authenticationMethod ConnectionControllers.AuthenticationMethod, username []byte, password []byte) bool { + if authenticationMethod != nil { + return authenticationMethod(username, password) + } + return true +}