Skip to content

Commit

Permalink
Changes for v1.0.4 -> Added path to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
NamidM committed May 27, 2022
1 parent ac001e8 commit 5e40be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ship/ship.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ShipNode struct {
}

type Request struct {
Port string
Path string
Id string
Ski string
}
Expand Down Expand Up @@ -73,7 +73,7 @@ func (shipNode *ShipNode) handleFoundService(entry *zeroconf.ServiceEntry) {
} else {
if shipNode.IsGateway {
shipNode.Requests = append(shipNode.Requests, &Request{
Port: strconv.Itoa(entry.Port),
Path: strings.Split(entry.Text[2], "=")[1],
Id: strings.Split(entry.Text[6], "=")[1] + " " + strings.Split(entry.Text[5], "=")[1] + " " + strings.Split(entry.Text[1], "=")[1],
Ski: strings.Split(entry.Text[3], "=")[1],
})
Expand Down

0 comments on commit 5e40be1

Please sign in to comment.