mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
add no-proxy configuration for gps-data-access
This commit is contained in:
1 parent
465be962ac
commit
66f3d81652
2 files changed
+14
-3
No files matched your search
+10
-2
@@ -48,8 +48,16 @@ public class PathGeneratorTracTrac extends PathGeneratorBase {
|
||||
public void setEvaluationParameters(String paramURLStr, String liveURIStr, String storedURIStr, double windScale) {
|
||||
try {
|
||||
this.paramUrl = new URL(paramURLStr);
|
||||
this.liveUri = new URI(liveURIStr);
|
||||
this.storedUri = new URI(storedURIStr);
|
||||
if (liveURIStr != null) {
|
||||
this.liveUri = new URI(liveURIStr);
|
||||
} else {
|
||||
this.liveUri = null;
|
||||
}
|
||||
if (storedURIStr != null) {
|
||||
this.storedUri = new URI(storedURIStr);
|
||||
} else {
|
||||
this.storedUri = null;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
|
||||
+4
-1
@@ -64,8 +64,11 @@ public class SailingSimulatorImpl implements SailingSimulator {
|
||||
// String raceURL =
|
||||
// "http://germanmaster.traclive.dk/events/event_20110929_Internatio/clientparams.php?event=event_20110929_Internatio&race=6bb0829e-ec44-11e0-a523-406186cbf87c";
|
||||
PathGeneratorTracTrac genTrac = new PathGeneratorTracTrac(simulationParameters);
|
||||
//genTrac.setEvaluationParameters(raceURL, "tcp://10.18.206.73:1520", "tcp://10.18.206.73:1521"); // old tunnel-ip
|
||||
|
||||
// proxy configuration
|
||||
genTrac.setEvaluationParameters(raceURL, "tcp://10.18.22.156:1520", "tcp://10.18.22.156:1521", 4.5); // new tunnel-ip
|
||||
// no-proxy configuration
|
||||
//genTrac.setEvaluationParameters(raceURL, "tcp://germanmaster.traclive.dk:4400", "tcp://germanmaster.traclive.dk:4401", 4.5); // new tunnel-ip
|
||||
|
||||
gpsPath = genTrac.getPath();
|
||||
gpsPathPoly = genTrac.getPathPolyline(new MeterDistance(4.88));
|
||||
|
||||
Reference in new issue
Block a user