diff options
author | Mark J. Titorenko <nospam-github.com@titorenko.net> | 2014-10-22 19:44:49 +0100 |
---|---|---|
committer | Mark J. Titorenko <nospam-github.com@titorenko.net> | 2014-10-22 19:44:49 +0100 |
commit | 446812b131b2aee273cd8e2f2be768ad5a42d031 (patch) | |
tree | 640d89e5e338164a942b414f5f20f633952623b2 | |
parent | 197a2cef054749fd259e6473b1a89f23be668e02 (diff) | |
parent | 649f01c6c9d58c240a18449a15b98dfbf1a87a53 (diff) | |
download | net-dhcp-ruby-446812b131b2aee273cd8e2f2be768ad5a42d031.tar.gz |
Merge pull request #9 from mordocai/patch-1
HostNameOption uses wrong type
-rw-r--r-- | lib/net/dhcp/options.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/dhcp/options.rb b/lib/net/dhcp/options.rb index de47329..b9c080d 100644 --- a/lib/net/dhcp/options.rb +++ b/lib/net/dhcp/options.rb @@ -144,7 +144,7 @@ module DHCP # The default value for this option is 'caprica' class HostNameOption < Option def initialize(params={}) - params[:type] = $DHCP_DNS + params[:type] = $DHCP_HOSTNAME params[:payload] = params.fetch(:payload, 'caprica'.unpack('C*')) super(params) end |