The feedback database now stores world.internet_address instead of world.address.

world.address is the local world address, which is in many cases your router. internet_address on the other hand is the IP you use to connect, which is what I want.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2468 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-11-01 01:46:27 +00:00
parent e2730f377a
commit 052fc235af
2 changed files with 9 additions and 2 deletions

View File

@@ -163,8 +163,15 @@ var/obj/machinery/blackbox_recorder/blackbox
proc/save_all_data_to_sql()
if(!feedback) return
var/user = sqlfdbklogin
var/pass = sqlfdbkpass
var/db = sqlfdbkdb
var/address = sqladdress
var/port = sqlport
var/DBConnection/dbcon = new()
dbcon.Connect("dbi:mysql:test:fornoreason.servehttp.com:3306","erro","3rr0HatesGlov3s")
dbcon.Connect("dbi:mysql:[db]:[address]:[port]","[user]","[pass]")
if(!dbcon.IsConnected()) return
var/round_id