@@ -177,7 +177,7 @@ func PrintGetLbResult(resp *http.Response, o api.RESTOptions) {
177
177
for i , eps := range lbrule .Endpoints {
178
178
if i == 0 {
179
179
180
- data = append (data , []string {lbrule .Service .ExternalIP , secIPs , lbrule .Service .Path , fmt .Sprintf ("%d" , lbrule .Service .Port ), protocolStr , lbrule .Service .Name , fmt .Sprintf ("%d" , lbrule .Service .Block ), NumToSelect (int (lbrule .Service .Sel )), NumToMode (int (lbrule .Service .Mode )),
180
+ data = append (data , []string {lbrule .Service .ExternalIP , secIPs , lbrule .Service .Host , fmt .Sprintf ("%d" , lbrule .Service .Port ), protocolStr , lbrule .Service .Name , fmt .Sprintf ("%d" , lbrule .Service .Block ), NumToSelect (int (lbrule .Service .Sel )), NumToMode (int (lbrule .Service .Mode )),
181
181
eps .EndpointIP , fmt .Sprintf ("%d" , eps .TargetPort ), fmt .Sprintf ("%d" , eps .Weight ), eps .State , eps .Counter })
182
182
} else {
183
183
data = append (data , []string {"" , "" , "" , "" , "" , "" , "" , "" , "" , eps .EndpointIP , fmt .Sprintf ("%d" , eps .TargetPort ), fmt .Sprintf ("%d" , eps .Weight ), eps .State , eps .Counter })
@@ -186,7 +186,7 @@ func PrintGetLbResult(resp *http.Response, o api.RESTOptions) {
186
186
} else {
187
187
for i , eps := range lbrule .Endpoints {
188
188
if i == 0 {
189
- data = append (data , []string {lbrule .Service .ExternalIP , secIPs , lbrule .Service .Path , fmt .Sprintf ("%d" , lbrule .Service .Port ), protocolStr , lbrule .Service .Name , fmt .Sprintf ("%d" , lbrule .Service .Block ), NumToSelect (int (lbrule .Service .Sel )), NumToMode (int (lbrule .Service .Mode )),
189
+ data = append (data , []string {lbrule .Service .ExternalIP , secIPs , lbrule .Service .Host , fmt .Sprintf ("%d" , lbrule .Service .Port ), protocolStr , lbrule .Service .Name , fmt .Sprintf ("%d" , lbrule .Service .Block ), NumToSelect (int (lbrule .Service .Sel )), NumToMode (int (lbrule .Service .Mode )),
190
190
eps .EndpointIP , fmt .Sprintf ("%d" , eps .TargetPort ), fmt .Sprintf ("%d" , eps .Weight ), "-" , eps .Counter })
191
191
} else {
192
192
data = append (data , []string {"" , "" , "" , "" , "" , "" , "" , "" , "" , eps .EndpointIP , fmt .Sprintf ("%d" , eps .TargetPort ), fmt .Sprintf ("%d" , eps .Weight ), "-" , eps .Counter })
0 commit comments