Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cmd/discard.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,16 @@ var discardCmd = &cobra.Command{
URL = EUCIURL
case "us":
URL = USCIURL
case "au":
URL = AUCIURL
case "in":
URL = INCIURL
case "ca":
URL = CACIURL
case "ae":
URL = AECIURL
default:
fmt.Printf("Invalid region %s, expected eu or us\n", region)
fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region)
os.Exit(1)
}

Expand Down
10 changes: 9 additions & 1 deletion cmd/enforce.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,16 @@ var enforceCmd = &cobra.Command{
URL = EUCIURL
case "us":
URL = USCIURL
case "au":
URL = AUCIURL
case "in":
URL = INCIURL
case "ca":
URL = CACIURL
case "ae":
URL = AECIURL
default:
fmt.Printf("Invalid region %s, expected eu or us\n", region)
fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region)
os.Exit(1)
}

Expand Down
10 changes: 9 additions & 1 deletion cmd/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,16 @@ var publishCmd = &cobra.Command{
URL = EUCIURL
case "us":
URL = USCIURL
case "au":
URL = AUCIURL
case "in":
URL = INCIURL
case "ca":
URL = CACIURL
case "ae":
URL = AECIURL
default:
fmt.Printf("Invalid region %s, expected eu or us\n", region)
fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region)
os.Exit(1)
}

Expand Down
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
const (
EUCIURL = "https://cloudinfra-gw.portal.checkpoint.com"
USCIURL = "https://cloudinfra-gw-us.portal.checkpoint.com"
AUCIURL = "https://cloudinfra-gw.ap.portal.checkpoint.com"
INCIURL = "https://cloudinfra-gw.in.portal.checkpoint.com"
AECIURL = "https://cloudinfra-gw.ae.portal.checkpoint.com"
CACIURL = "https://cloudinfra-gw.ca.portal.checkpoint.com"
CIAuthPath = "/auth/external"
appIDClaim = "appId"
wafAppID = "64488de9-f813-42a7-93e7-f3fe25dd9011"
Expand Down
Loading