From 27b0401c20b7bdaa16271e012b3857c01d6dbf45 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 8 Feb 2017 10:37:53 +0100 Subject: [PATCH] remove context functions for allow passive connection --- proxy/context.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/proxy/context.go b/proxy/context.go index 586c54ea..e032f783 100644 --- a/proxy/context.go +++ b/proxy/context.go @@ -100,12 +100,3 @@ func ResolvedIPsFromContext(ctx context.Context) ([]net.Address, bool) { ips, ok := ctx.Value(resolvedIPsKey).([]net.Address) return ips, ok } - -func ContextWithAllowPassiveConnection(ctx context.Context, allowPassiveConnection bool) context.Context { - return context.WithValue(ctx, allowPassiveConnKey, allowPassiveConnection) -} - -func AllowPassiveConnectionFromContext(ctx context.Context) (bool, bool) { - allow, ok := ctx.Value(allowPassiveConnKey).(bool) - return allow, ok -}