do moving target defense, fix wrong port,
This commit is contained in:
		
							
								
								
									
										4
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.go
									
									
									
									
									
								
							| @@ -34,7 +34,7 @@ func main() { | |||||||
| 	createTunnels(config) | 	createTunnels(config) | ||||||
|  |  | ||||||
| 	// START DOING MTD | 	// START DOING MTD | ||||||
| 	//mtdLoop(config) | 	mtdLoop(config) | ||||||
| } | } | ||||||
|  |  | ||||||
| func mtdLoop(config state.Config) { | func mtdLoop(config state.Config) { | ||||||
| @@ -102,7 +102,7 @@ func createTunnels(config state.Config) { | |||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
| 			// Reconfigure Proxy to new instance | 			// Reconfigure Proxy to new instance | ||||||
| 			c := pcsdk.NewCommandCreate(service.ServicePort, service.ServicePort, service.ServiceIP, serviceUUID) | 			c := pcsdk.NewCommandCreate(service.EntryPort, service.ServicePort, service.ServiceIP, serviceUUID) | ||||||
| 			err = c.Execute(netip.AddrPortFrom(service.EntryIP, config.MTD.ManagementPort)) | 			err = c.Execute(netip.AddrPortFrom(service.EntryIP, config.MTD.ManagementPort)) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				continue | 				continue | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 schulze
					schulze