From 91bdbf6554266fbc6106acc62ae6087aaa5bb633 Mon Sep 17 00:00:00 2001 From: Antonio Jose Donis Hung Date: Mon, 23 Nov 2020 03:27:47 -0500 Subject: [PATCH] Create Constants.go --- pkg/Proxies/Constants.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkg/Proxies/Constants.go 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 +}