From f5e01ba3c2f81e6ec34324066327af92182d811f Mon Sep 17 00:00:00 2001 From: schulze Date: Tue, 2 May 2023 14:50:22 +0200 Subject: [PATCH] do moving target defense, fix wrong port, --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d73946e..7118300 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func main() { createTunnels(config) // START DOING MTD - //mtdLoop(config) + mtdLoop(config) } func mtdLoop(config state.Config) { @@ -102,7 +102,7 @@ func createTunnels(config state.Config) { continue } // 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)) if err != nil { continue