lib/rubydns.rb in rubydns-0.5.2 vs lib/rubydns.rb in rubydns-0.5.3
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
+# Copyright, 2009, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -64,11 +64,11 @@
# The default interface is <tt>[[:udp, "0.0.0.0", 53]]</tt>. The server typically needs
# to run as root for this to work, since port 53 is privileged.
#
def self.run_server (options = {}, &block)
server = RubyDNS::Server.new(&block)
- server.logger.info "Starting RubyDNS server (v#{RubyDNS::VERSION::STRING})..."
+ server.logger.info "Starting RubyDNS server (v#{RubyDNS::VERSION})..."
options[:listen] ||= [[:udp, "0.0.0.0", 53], [:tcp, "0.0.0.0", 53]]
EventMachine.run do
server.fire(:setup)
@@ -87,6 +87,5 @@
end
server.fire(:stop)
end
end
-