Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
1f48bad2
Commit
1f48bad2
authored
Feb 10, 2025
by
qiuqunfeng
Browse files
commit
parent
0f861042
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cmd/app/cmd.go
cmd/app/cmd.go
+1
-1
cmd/app/config.go
cmd/app/config.go
+1
-0
No files found.
cmd/app/cmd.go
View file @
1f48bad2
...
...
@@ -58,7 +58,7 @@ func NewRootCommand() *cobra.Command {
client
:=
versioned
.
NewForConfigOrDie
(
&
rest
.
Config
{
Host
:
regionConfig
.
ApiServer
,
TLSClientConfig
:
rest
.
TLSClientConfig
{
Insecure
:
fals
e
,
Insecure
:
regionConfig
.
Insecur
e
,
CAData
:
caData
,
CertData
:
clientCertData
,
KeyData
:
clientKeyData
,
...
...
cmd/app/config.go
View file @
1f48bad2
...
...
@@ -36,6 +36,7 @@ type RegionConfig struct {
Token
string
`yaml:"token"`
ClientCertData
string
`yaml:"client_cert_data"`
ClientKeyData
string
`yaml:"client_key_data"`
Insecure
bool
`yaml:"insecure"`
}
func
LoadConfig
()
*
Config
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment