diff options
author | Chris Carpenter <mordocai@mordocai.net> | 2014-05-15 14:49:56 -0500 |
---|---|---|
committer | Chris Carpenter <mordocai@mordocai.net> | 2014-05-15 14:49:56 -0500 |
commit | 649f01c6c9d58c240a18449a15b98dfbf1a87a53 (patch) | |
tree | 6e7f952870e055d022b418785111b40ce01e2039 | |
parent | b644922a08aa09e2ce75f8f9f9fa1f0b8cecb2e9 (diff) | |
download | net-dhcp-ruby-649f01c6c9d58c240a18449a15b98dfbf1a87a53.tar.gz |
Update options.rb
Fix HostNameOption to use correct 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 |