Add wgtester

This commit is contained in:
Owen
2025-03-31 18:11:04 -04:00
parent aeb8f203a4
commit e35f7c2d36
3 changed files with 419 additions and 43 deletions

View File

@@ -21,11 +21,15 @@ import (
)
type WgData struct {
Endpoint string `json:"endpoint"`
PublicKey string `json:"publicKey"`
ServerIP string `json:"serverIP"`
TunnelIP string `json:"tunnelIP"`
Targets TargetsByType `json:"targets"`
Sites []SiteConfig `json:"sites"`
TunnelIP string `json:"tunnelIP"`
}
type SiteConfig struct {
SiteId string `json:"siteId"`
Endpoint string `json:"endpoint"`
PublicKey string `json:"publicKey"`
ServerIP string `json:"serverIP"`
}
type TargetsByType struct {