Bug 444689

Summary: Importing wireguard conf that has separate lines for allowedIP only imports one.
Product: [Applications] systemsettings Reporter: quackdoctech
Component: kcm_networkmanagementAssignee: Jan Grulich <jgrulich>
Status: REPORTED ---    
Severity: minor CC: jgrulich, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description quackdoctech 2021-10-30 21:45:57 UTC
SUMMARY
When importing a wireguard config file, if the config has separate lines for AllowedIPs, it will only import one IP address instead of both (or all)

STEPS TO REPRODUCE
1. Create a wireguard configuration file with split two AllowedIPs lines. IE.
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0

2. Import the conf file


OBSERVED RESULT
Only one line gets imported to the Peers > AllowedIPs

EXPECTED RESULT
Bothlines get properly added and formatted to Peers > AllowedIPs

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
plasma-nm 5.23.2-1

Probably a minor issue for most people, but some wireguard configurations get served in this manor, whether right or wrong.