backend.rb

rbmud-0.2/lib/backend.rb · 519 B

From the archive RbMUD-0.2.tar.bz2

Download the archive   « Back to the archive contents

# $Revision: 1.6 $
# $Date: 2003/12/05 03:12:18 $
# $Author: mikeman2 $

#this is insecure. if the box running this code is either not firewalled or compromised,
#the entire mud can be easily compromised.  having a special class that authorized and
#limits access to the system object can fix this.

require 'drb'
require 'lib/acl'
class System
	def initBackend
		#DRb.install_acl(ACL.new(%w[
		#	deny all
		#	allow 127.0.0.1
		#		]))
		DRb.start_service("druby://:4041", self)
		Logger.log("Backend loaded.")
	end
end

Site Stats

Snippets: 1791
Codebases: 571