feat: add default value handling for network protocol and remove obsolete test file

This commit is contained in:
2025-07-17 18:14:31 +02:00
parent 1b1dc263cd
commit d8d02f9e89
3 changed files with 6 additions and 1 deletions

View File

@ -397,6 +397,11 @@ func createAndMountISO(size, mountpoint, charset string) error {
}
func initializeNetworkProtocol(forceProtocol string) (*net.Dialer, error) {
// Handle empty/default value
if forceProtocol == "" {
forceProtocol = "auto"
}
switch forceProtocol {
case "ipv4":
return &net.Dialer{