diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 2f3c950..4391cb8 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -226,11 +226,11 @@ bool CQnetGateway::read_config(char *cfgFile) cfg.GetValue(path+"offset", type, rptr.mod[m].offset, -1.0e12, 1.0e12); cfg.GetValue(path+"range", type, rptr.mod[m].range, 0.0, 1609344.0); cfg.GetValue(path+"agl", type, rptr.mod[m].agl, 0.0, 1000.0); - cfg.GetValue("gateway_latitude", type, rptr.mod[m].latitude, -90.0, 90.0); - cfg.GetValue("gateway_longitude", type, rptr.mod[m].longitude, -180.0, 180.0); - cfg.GetValue("gateway_desc1", type, rptr.mod[m].desc1, 0, 20); - cfg.GetValue("gateway_desc2", type, rptr.mod[m].desc2, 0, 20); - cfg.GetValue("gateway_url", type, rptr.mod[m].url, 0, 80); + cfg.GetValue("gateway_latitude", estr, rptr.mod[m].latitude, -90.0, 90.0); + cfg.GetValue("gateway_longitude", estr, rptr.mod[m].longitude, -180.0, 180.0); + cfg.GetValue("gateway_desc1", estr, rptr.mod[m].desc1, 0, 20); + cfg.GetValue("gateway_desc2", estr, rptr.mod[m].desc2, 0, 20); + cfg.GetValue("gateway_url", estr, rptr.mod[m].url, 0, 80); // make the long description for the log if (rptr.mod[m].desc1.length()) diff --git a/defaults b/defaults index 0986329..a4193a0 100644 --- a/defaults +++ b/defaults @@ -45,6 +45,7 @@ ircddb_password_d='1111111111111' # not needed for rr.openquad.net gateway_header_regen_d=true # regenerate headers from incoming data gateway_send_qrgs_maps_d=true # send frequency, offset, coordinates and url to irc-server gateway_local_irc_ip_d='0.0.0.0' # the local port on the gateway for the IRC TCP socket +gateway_ip_d='0.0.0.0' # the g2 port gateway_port_d=40000 # don't change gateway_tolink_d='gate2link' # Unix sockets between qngateway and QnetLink gateway_fromlink_d='link2gate' # all Unix sockets are on the file system, but hidden from view