소스 검색

remove context functions for allow passive connection

Darien Raymond 8 년 전
부모
커밋
27b0401c20
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      proxy/context.go

+ 0 - 9
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
-}