Clean up unused func checkKnownProxyMode

This commit is contained in:
xiangpengzhao 2017-10-12 16:40:52 +08:00
parent f60b92a26a
commit 991a75e1e3

View File

@ -82,15 +82,6 @@ const (
proxyModeKernelspace = "kernelspace"
)
// checkKnownProxyMode returns true if proxyMode is valid.
func checkKnownProxyMode(proxyMode string) bool {
switch proxyMode {
case "", proxyModeUserspace, proxyModeIPTables, proxyModeIPVS, proxyModeKernelspace:
return true
}
return false
}
// Options contains everything necessary to create and run a proxy server.
type Options struct {
// ConfigFile is the location of the proxy server's configuration file.