summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark J. Titorenko <nospam-github.com@titorenko.net>2014-10-22 19:44:49 +0100
committerMark J. Titorenko <nospam-github.com@titorenko.net>2014-10-22 19:44:49 +0100
commit446812b131b2aee273cd8e2f2be768ad5a42d031 (patch)
tree640d89e5e338164a942b414f5f20f633952623b2
parent197a2cef054749fd259e6473b1a89f23be668e02 (diff)
parent649f01c6c9d58c240a18449a15b98dfbf1a87a53 (diff)
downloadnet-dhcp-ruby-446812b131b2aee273cd8e2f2be768ad5a42d031.tar.gz
Merge pull request #9 from mordocai/patch-1
HostNameOption uses wrong type
-rw-r--r--lib/net/dhcp/options.rb2
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