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) {
 | 
					func initializeNetworkProtocol(forceProtocol string) (*net.Dialer, error) {
 | 
				
			||||||
 | 
						// Handle empty/default value
 | 
				
			||||||
 | 
						if forceProtocol == "" {
 | 
				
			||||||
 | 
							forceProtocol = "auto"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	switch forceProtocol {
 | 
						switch forceProtocol {
 | 
				
			||||||
	case "ipv4":
 | 
						case "ipv4":
 | 
				
			||||||
		return &net.Dialer{
 | 
							return &net.Dialer{
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								hmac-file-server.pid
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								hmac-file-server.pid
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					564137
 | 
				
			||||||
@ -1 +0,0 @@
 | 
				
			|||||||
Hello, HMAC File Server! Do 17. Jul 18:05:48 CEST 2025
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user