Skip to content

Commit

Permalink
Add description of remote mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Nov 1, 2020
1 parent e534418 commit 4a9af9c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ $ gosivy 15788
Be sure to start the `gosivy` process as the same user as the target application.

### Remote Mode
Give the address the agent listens on:
```go
package main

Expand All @@ -101,14 +102,19 @@ import (
)

func main() {
// TODO: Start agent
err := agent.Listen(agent.Options{
Addr: "127.0.0.1:9090",
})
if err != nil {
log.Fatal(err)
}
defer agent.Close()
}
```

Give the target's agent address:

Specify the target's agent addresses accessible by the host where `gosivy` will be executed:
```
$ gosivy host.xz:8080
$ gosivy host.xz:9090
```

### Settings
Expand Down

0 comments on commit 4a9af9c

Please sign in to comment.