From 649f01c6c9d58c240a18449a15b98dfbf1a87a53 Mon Sep 17 00:00:00 2001 From: Chris Carpenter Date: Thu, 15 May 2014 14:49:56 -0500 Subject: Update options.rb Fix HostNameOption to use correct type. --- lib/net/dhcp/options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1