mirror of
https://github.com/moby/moby.git
synced 2026-06-24 08:48:23 +00:00
Merge pull request #52916 from tao12345666333/clean-up-dead-code
libnetwork/drivers/bridge: configureIPForwarding: fix dropped error message
This commit is contained in:
@@ -121,7 +121,7 @@ func setupIPv6Forwarding(ffd filterForwardDropper, wantFilterForwardDrop bool) (
|
||||
|
||||
func configureIPForwarding(file string, val byte) (changed bool, _ error) {
|
||||
data, err := os.ReadFile(file)
|
||||
if err != nil || len(data) == 0 {
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("cannot read IP forwarding setup from '%s': %w", file, err)
|
||||
}
|
||||
if len(data) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user