feat: add default value handling for network protocol and remove obsolete test file
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user