fixing read_config

pull/12/head
Tom Early 7 years ago
parent 2bea84e0c9
commit 196b5bed0f

@ -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())

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.