Kherel 2 years ago
parent d4f315214b
commit e5758aa2bf
  1. 4
      lib/logic/api_maps/hetzner.dart
  2. 2
      lib/logic/cubit/app_config/app_config_repository.dart

@ -195,7 +195,7 @@ class HetznerApi extends ApiMap {
Future<void> createReverseDns({
required String ip4,
required String cloudFlareDomain,
required String domainName,
}) async {
var hetznerServer = getIt<ApiConfigModel>().hetznerServer;
var client = await getClient();
@ -203,7 +203,7 @@ class HetznerApi extends ApiMap {
'/servers/${hetznerServer!.id}/actions/change_dns_ptr',
data: {
"ip": ip4,
"dns_ptr": cloudFlareDomain,
"dns_ptr": domainName,
},
);
close(client);

@ -166,7 +166,7 @@ class AppConfigRepository {
await HetznerApi().createReverseDns(
ip4: ip4,
cloudFlareDomain: cloudFlareDomain.domainName,
domainName: cloudFlareDomain.domainName,
);
}

Loading…
Cancel
Save