Skip to content

Commit 3f9b28a

Browse files
committed
oops
1 parent 87272fc commit 3f9b28a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

device/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (c *Client) ReifySpec() (latest bool, err error) {
105105
return false, err
106106
}
107107

108-
err = c.patchForwardsFor(&nc)
108+
err = c.patchAccessible(&nc)
109109
if err != nil {
110110
return false, err
111111
}
@@ -274,14 +274,14 @@ func (c *Client) chooseEndpoints(nc *spec.NetworkCensored) error {
274274
return nil
275275
}
276276

277-
func (c *Client) patchForwardsFor(nc *spec.NetworkCensored) error {
277+
func (c *Client) patchAccessible(nc *spec.NetworkCensored) error {
278278
var forwardsFor []string
279279
for _, ndc := range nc.Devices {
280280
if ndc.ForwarderAndEndpointChosen {
281281
forwardsFor = append(forwardsFor, ndc.Name)
282282
}
283283
}
284-
if len(forwardsFor) == 0 {
284+
if len(forwardsFor) != 0 {
285285
zap.S().Debugf("I can forward for %d devices.", len(forwardsFor))
286286
err := c.patchSpec(coord.PatchReifySpecRequest{
287287
Accessible: forwardsFor,

0 commit comments

Comments
 (0)