Skip to content

Commit

Permalink
Use the given IP if there is one.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Nov 6, 2024
1 parent 35c6163 commit b90c7b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/jag/commands/device_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ func ScanNetwork(ctx context.Context, ds deviceSelect, port uint) ([]Device, err
} else if dev == nil {
return nil, fmt.Errorf("invalid identify response")
}
// Use the provided address. This way we can tunnel through the device.
dev.address = "http://" + addr
return []Device{*dev}, nil
}

Expand Down

0 comments on commit b90c7b6

Please sign in to comment.