Skip to content

Commit

Permalink
fix: try to make podman keep source IP, instead of changing it to local
Browse files Browse the repository at this point in the history
This requires rebuilding pod.

Thanks to @nhlpl for reporting problem with all logins seen from
the same IP.

Also see: containers/podman#5138 (comment)
  • Loading branch information
ahwayakchih committed Feb 20, 2021
1 parent 6510994 commit 6992d9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nobbic
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function buildPod () {

podman pod create -n "$APP_NAME" $podOptions \
$PODMAN_ARG_LABEL \
--network=slirp4netns:port_handler=slirp4netns\
--add-host=localhost:127.0.0.1 --hostname="$APP_NAME" || return $?

if [ -n "$APP_ADD_MONGODB" ] ; then
Expand Down

0 comments on commit 6992d9c

Please sign in to comment.