do moving target defense, fix wrong port,

This commit is contained in:
schulze 2023-05-02 14:50:22 +02:00
parent e95f77d203
commit f5e01ba3c2

View File

@ -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