BUGFIX starting jail with dhcp
This commit is contained in:
@ -1448,7 +1448,7 @@ func StartJail(args []string) {
|
||||
fmt.Printf(" > Setup VNet network: OK\n")
|
||||
|
||||
// Set default route, unless main network is dhcp
|
||||
if ! cj.isFirstNetDhcp() {
|
||||
if ! cj.isFirstNetDhcp() && !strings.EqualFold(cj.Config.Ip4_addr, "none") {
|
||||
fmt.Printf(" > Setup default ipv4 gateway:\n")
|
||||
cmd := fmt.Sprintf("/usr/sbin/setfib %s /usr/sbin/jexec %d route add default %s", cj.Config.Exec_fib, cj.JID, cj.Config.Defaultrouter)
|
||||
out, err := executeCommand(cmd)
|
||||
|
Reference in New Issue
Block a user