Skip to content

Commit

Permalink
libpod: rename confusing import name
Browse files Browse the repository at this point in the history
The packge is called slirp4netns and renaming it makes no sense, this
was likely done by accident.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Oct 18, 2023
1 parent efe5e98 commit caef657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpod/info_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/containers/common/libnetwork/pasta"
libpod "github.com/containers/common/libnetwork/slirp4netns"
"github.com/containers/common/libnetwork/slirp4netns"
"github.com/containers/common/pkg/apparmor"
"github.com/containers/common/pkg/cgroups"
"github.com/containers/common/pkg/seccomp"
Expand Down Expand Up @@ -59,7 +59,7 @@ func (r *Runtime) setPlatformHostInfo(info *define.HostInfo) error {

slirp4netnsPath := r.config.Engine.NetworkCmdPath
if slirp4netnsPath == "" {
slirp4netnsPath, _ = r.config.FindHelperBinary(libpod.BinaryName, true)
slirp4netnsPath, _ = r.config.FindHelperBinary(slirp4netns.BinaryName, true)
}
if slirp4netnsPath != "" {
ver, err := version.Program(slirp4netnsPath)
Expand Down

0 comments on commit caef657

Please sign in to comment.