yahoo/vssh

Source ip/host?

Closed this issue · 1 comments

In the following code provided in the examples, how to get the client ip/host which generated the outTxt

	// get the resp channel for each client
	for resp := range respChan {
		// in case of the connectivity issue to client
		if err := resp.Err(); err != nil {
			log.Println(err)
			continue
		}

		// get the returned data from client
		outTxt, errTxt, err := resp.GetText(vs)
host := resp.ID()