Skip to content

Commit b0a8fd1

Browse files
committed
fix: r
Signed-off-by: Ashing Zheng <[email protected]>
1 parent ffecf25 commit b0a8fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/adc/client/executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ type ADCServerTask struct {
213213
// ADCServerOpts represents the options in ADC Server task
214214
type ADCServerOpts struct {
215215
Backend string `json:"backend"`
216-
Server string `json:"server"`
216+
Server []string `json:"server"`
217217
Token string `json:"token"`
218218
LabelSelector map[string]string `json:"labelSelector,omitempty"`
219219
IncludeResourceType []string `json:"includeResourceType,omitempty"`
@@ -374,7 +374,7 @@ func (e *HTTPADCExecutor) buildHTTPRequest(ctx context.Context, serverAddr, mode
374374
Task: ADCServerTask{
375375
Opts: ADCServerOpts{
376376
Backend: mode,
377-
Server: serverAddr,
377+
Server: strings.Split(serverAddr, ","),
378378
Token: config.Token,
379379
LabelSelector: labels,
380380
IncludeResourceType: types,

0 commit comments

Comments
 (0)