Changeset 5056

Show
Ignore:
Timestamp:
07/17/07 14:06:16 (1 year ago)
Author:
hdm
Message:

It helps when the new hash is actually used...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/tags/framework-3.0/lib/msf/core/db_manager.rb

    r4364 r5056  
    4646                 
    4747                return false if not @usable 
    48  
     48                 
     49                nopts = opts.dup 
     50                if (nopts['port']) 
     51                        nopts['port'] = nopts['port'].to_i 
     52                end 
     53                 
     54                 
    4955                begin 
    5056                        ActiveRecord::Base.threaded_connections = false 
    51                         ActiveRecord::Base.establish_connection(opts) 
     57                        ActiveRecord::Base.establish_connection(nopts) 
    5258                rescue ::Exception => e 
    5359                        elog("DB.connect threw an exception: #{e.to_s}")