remove context functions for allow passive connection

pull/432/head
Darien Raymond 8 years ago
parent dc8e94ac79
commit 27b0401c20
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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
}

Loading…
Cancel
Save