mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	修复一个日志提示标签错误
This commit is contained in:
		@@ -18,7 +18,7 @@ func AddPortsToFirewall(ports []int) {
 | 
				
			|||||||
			if len(firewallCmd) > 0 {
 | 
								if len(firewallCmd) > 0 {
 | 
				
			||||||
				err := exec.Command(firewallCmd, "--add-port="+types.String(port)+"/tcp").Run()
 | 
									err := exec.Command(firewallCmd, "--add-port="+types.String(port)+"/tcp").Run()
 | 
				
			||||||
				if err == nil {
 | 
									if err == nil {
 | 
				
			||||||
					logs.Println("API_NODE", "add port '"+types.String(port)+"' to firewalld")
 | 
										logs.Println("ADMIN_NODE", "add port '"+types.String(port)+"' to firewalld")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					_ = exec.Command(firewallCmd, "--add-port="+types.String(port)+"/tcp", "--permanent").Run()
 | 
										_ = exec.Command(firewallCmd, "--add-port="+types.String(port)+"/tcp", "--permanent").Run()
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user