mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
fix: ipsec: spec is nil.
This commit is contained in:
@@ -171,13 +171,12 @@ func (s *Switch) Dir(elem0, elem1 string) string {
|
||||
}
|
||||
|
||||
func (s *Switch) RemarshalNetwork(obj *Network, format string) {
|
||||
context := obj.Specifies
|
||||
|
||||
obj.NewSpecifies()
|
||||
if obj.Specifies == nil {
|
||||
return
|
||||
}
|
||||
|
||||
context := obj.Specifies
|
||||
obj.NewSpecifies()
|
||||
|
||||
if format == "" {
|
||||
format = "json"
|
||||
if s.IsYaml() {
|
||||
|
||||
Reference in New Issue
Block a user