From 7a6bfd333666ab8efe147d0e0b871b49a9ba51d0 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 26 Oct 2022 17:42:07 +0200 Subject: [PATCH] chore: change TCP middleware package --- pkg/middlewares/tcp/inflightconn/inflight_conn.go | 2 +- pkg/middlewares/tcp/inflightconn/inflight_conn_test.go | 2 +- pkg/middlewares/tcp/ipallowlist/ip_allowlist.go | 2 +- pkg/middlewares/tcp/ipallowlist/ip_allowlist_test.go | 2 +- pkg/server/middleware/tcp/middlewares.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/middlewares/tcp/inflightconn/inflight_conn.go b/pkg/middlewares/tcp/inflightconn/inflight_conn.go index dbb602432..ddbb4bdab 100644 --- a/pkg/middlewares/tcp/inflightconn/inflight_conn.go +++ b/pkg/middlewares/tcp/inflightconn/inflight_conn.go @@ -1,4 +1,4 @@ -package tcpinflightconn +package inflightconn import ( "context" diff --git a/pkg/middlewares/tcp/inflightconn/inflight_conn_test.go b/pkg/middlewares/tcp/inflightconn/inflight_conn_test.go index 666df4317..138e92b41 100644 --- a/pkg/middlewares/tcp/inflightconn/inflight_conn_test.go +++ b/pkg/middlewares/tcp/inflightconn/inflight_conn_test.go @@ -1,4 +1,4 @@ -package tcpinflightconn +package inflightconn import ( "context" diff --git a/pkg/middlewares/tcp/ipallowlist/ip_allowlist.go b/pkg/middlewares/tcp/ipallowlist/ip_allowlist.go index 7e8dafdc4..dd5d14d43 100644 --- a/pkg/middlewares/tcp/ipallowlist/ip_allowlist.go +++ b/pkg/middlewares/tcp/ipallowlist/ip_allowlist.go @@ -1,4 +1,4 @@ -package tcpipallowlist +package ipallowlist import ( "context" diff --git a/pkg/middlewares/tcp/ipallowlist/ip_allowlist_test.go b/pkg/middlewares/tcp/ipallowlist/ip_allowlist_test.go index 75bef050d..4f3b59e15 100644 --- a/pkg/middlewares/tcp/ipallowlist/ip_allowlist_test.go +++ b/pkg/middlewares/tcp/ipallowlist/ip_allowlist_test.go @@ -1,4 +1,4 @@ -package tcpipallowlist +package ipallowlist import ( "context" diff --git a/pkg/server/middleware/tcp/middlewares.go b/pkg/server/middleware/tcp/middlewares.go index 739ed3b5b..ad6320a46 100644 --- a/pkg/server/middleware/tcp/middlewares.go +++ b/pkg/server/middleware/tcp/middlewares.go @@ -6,8 +6,8 @@ import ( "strings" "github.com/traefik/traefik/v2/pkg/config/runtime" - inflightconn "github.com/traefik/traefik/v2/pkg/middlewares/tcp/inflightconn" - ipallowlist "github.com/traefik/traefik/v2/pkg/middlewares/tcp/ipallowlist" + "github.com/traefik/traefik/v2/pkg/middlewares/tcp/inflightconn" + "github.com/traefik/traefik/v2/pkg/middlewares/tcp/ipallowlist" "github.com/traefik/traefik/v2/pkg/server/provider" "github.com/traefik/traefik/v2/pkg/tcp" )