mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix: create params with require_ipv6 (#19491)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -6344,6 +6344,9 @@ func (self *SGuest) ToNetworksConfig() []*api.NetworkConfig {
|
||||
netConf.Wire = network.WireId
|
||||
netConf.Network = network.Id
|
||||
netConf.Exit = guestNetwork.IsExit()
|
||||
if len(guestNetwork.Ip6Addr) > 0 {
|
||||
netConf.RequireIPv6 = true
|
||||
}
|
||||
// netConf.Private
|
||||
// netConf.Reserved
|
||||
netConf.Driver = guestNetwork.Driver
|
||||
|
||||
Reference in New Issue
Block a user