Method: I2P::BOB::Client#inhost

Defined in:
lib/i2p/bob/client.rb

#inhost(host) ⇒ void Also known as: inhost=

This method returns an undefined value.

Sets the inbound host name or IP address that the current tunnel listens on.

The default for new tunnels is ‘inhost(“localhost”)`.

Examples:

bob.inhost('127.0.0.1')

Parameters:

  • host (String, #to_s)

Raises:

  • (Error)

    if no tunnel has been selected

Since:

  • 0.1.4



290
291
292
293
294
# File 'lib/i2p/bob/client.rb', line 290

def inhost(host)
  send_command(:inhost, @options[:inhost] = host.to_s)
  read_response # "inhost set"
  self
end