diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-11-29 11:20:26 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2007-11-29 11:20:26 +0000 |
commit | 423293dead2208aba3428e0b7add48416c34cef4 (patch) | |
tree | 011590259a84167fcaf4f74604a63f13f2233168 /contrib/auto-naming/db.rb | |
parent | 30cbcaecc55dcce728a7ddc970574d2dc8f1c536 (diff) | |
download | tor-423293dead2208aba3428e0b7add48416c34cef4.tar.gz tor-423293dead2208aba3428e0b7add48416c34cef4.zip |
Make dbhost configureable
svn:r12600
Diffstat (limited to 'contrib/auto-naming/db.rb')
-rw-r--r-- | contrib/auto-naming/db.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/auto-naming/db.rb b/contrib/auto-naming/db.rb index b57724acdd..822a26bad7 100644 --- a/contrib/auto-naming/db.rb +++ b/contrib/auto-naming/db.rb @@ -39,8 +39,8 @@ class WeaselDbQueryHandle end class Db - def initialize(database, user, password) - @dbh = DBI.connect("dbi:Pg:#{database}:localhost", user, password); + def initialize(host, database, user, password) + @dbh = DBI.connect("dbi:Pg:#{database}:#{host}", user, password); @dbh['AutoCommit'] = false @transaction = false @pre_initial_transaction=true |