Fix: Make portals.conf fallback (Fixes #9144)
This commit is contained in:
parent
0a6ed15858
commit
ff7e1a90a8
1 changed files with 2 additions and 2 deletions
|
|
@ -359,7 +359,7 @@ func patch_portals_conf(text []byte) []byte {
|
|||
in_preferred = sl == "[preferred]"
|
||||
lines = append(lines, line)
|
||||
for _, iface := range AllPortalInterfaces() {
|
||||
lines = append(lines, iface+"=kitty")
|
||||
lines = append(lines, iface+"=kitty;*")
|
||||
}
|
||||
patched = true
|
||||
} else if in_preferred {
|
||||
|
|
@ -380,7 +380,7 @@ func patch_portals_conf(text []byte) []byte {
|
|||
// the file was empty or did not contain a section
|
||||
lines = append(lines, "[preferred]")
|
||||
for _, iface := range AllPortalInterfaces() {
|
||||
lines = append(lines, iface+"=kitty")
|
||||
lines = append(lines, iface+"=kitty;*")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue