Skip to content

Commit

Permalink
remove ddns support
Browse files Browse the repository at this point in the history
ddns is not reliable. better use vpn to access remote instances
  • Loading branch information
dernasherbrezon committed Feb 9, 2024
1 parent 94ed13b commit 0658518
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 677 deletions.
7 changes: 0 additions & 7 deletions src/main/java/ru/r2cloud/R2Cloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import ru.r2cloud.cloud.LeoSatDataClient;
import ru.r2cloud.cloud.LeoSatDataService;
import ru.r2cloud.cloud.SatnogsClient;
import ru.r2cloud.ddns.DDNSClient;
import ru.r2cloud.device.Device;
import ru.r2cloud.device.DeviceManager;
import ru.r2cloud.device.LoraAtBleDevice;
Expand Down Expand Up @@ -78,7 +77,6 @@
import ru.r2cloud.web.api.PresentationMode;
import ru.r2cloud.web.api.TLE;
import ru.r2cloud.web.api.configuration.Configured;
import ru.r2cloud.web.api.configuration.DDNS;
import ru.r2cloud.web.api.configuration.General;
import ru.r2cloud.web.api.configuration.Integrations;
import ru.r2cloud.web.api.observation.ObservationList;
Expand Down Expand Up @@ -113,7 +111,6 @@ public class R2Cloud {
private final Authenticator auth;
private final Metrics metrics;
private final AutoUpdate autoUpdate;
private final DDNSClient ddnsClient;
private final SatelliteDao satelliteDao;
private final TleDao tleDao;
private final Housekeeping houseKeeping;
Expand Down Expand Up @@ -156,7 +153,6 @@ public R2Cloud(Configuration props, Clock clock) {
predict = new PredictOreKit(props);
auth = new Authenticator(props);
autoUpdate = new AutoUpdate(props);
ddnsClient = new DDNSClient(props);
satelliteDao = new SatelliteDao(props);
tleDao = new TleDao(props);
signed = new SignedURL(props, clock);
Expand Down Expand Up @@ -239,7 +235,6 @@ public R2Cloud(Configuration props, Clock clock) {
index(new MetricsController(signed, metrics));
index(new Overview(deviceManager));
index(new General(props, autoUpdate));
index(new DDNS(props, ddnsClient));
index(new TLE(satelliteDao, tleDao));
index(new Integrations(props));
index(new ObservationSpectrogram(resultDao, spectogramService, signed));
Expand All @@ -258,7 +253,6 @@ public R2Cloud(Configuration props, Clock clock) {
}

public void start() {
ddnsClient.start();
decoderService.start();
houseKeeping.start();
// device manager should start after tle (it uses TLE to schedule
Expand All @@ -283,7 +277,6 @@ public void stop() {
deviceManager.stop();
houseKeeping.stop();
decoderService.stop();
ddnsClient.stop();
}

public static void main(String[] args) {
Expand Down
62 changes: 0 additions & 62 deletions src/main/java/ru/r2cloud/ddns/DDNSClient.java

This file was deleted.

7 changes: 0 additions & 7 deletions src/main/java/ru/r2cloud/ddns/DDNSType.java

This file was deleted.

52 changes: 0 additions & 52 deletions src/main/java/ru/r2cloud/ddns/ExternalIpClient.java

This file was deleted.

86 changes: 0 additions & 86 deletions src/main/java/ru/r2cloud/ddns/NoIPTask.java

This file was deleted.

71 changes: 0 additions & 71 deletions src/main/java/ru/r2cloud/ddns/noip/NoIpClient.java

This file was deleted.

15 changes: 0 additions & 15 deletions src/main/java/ru/r2cloud/ddns/noip/NoIpException.java

This file was deleted.

16 changes: 0 additions & 16 deletions src/main/java/ru/r2cloud/ddns/noip/RetryException.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/java/ru/r2cloud/util/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ru.r2cloud.ddns.DDNSType;
import ru.r2cloud.model.DemodulatorType;
import ru.r2cloud.model.DeviceConfiguration;
import ru.r2cloud.model.Modulation;
Expand Down Expand Up @@ -558,14 +557,6 @@ public void setList(String name, List<String> urls) {
setProperty(name, str.toString());
}

public DDNSType getDdnsType(String name) {
String str = getProperty(name);
if (str == null || str.trim().length() == 0) {
return null;
}
return DDNSType.valueOf(str);
}

public void remove(String name) {
synchronized (changedProperties) {
changedProperties.add(name);
Expand Down
Loading

0 comments on commit 0658518

Please sign in to comment.