Skip to content

Commit

Permalink
fix: fix regression that removed support for ddclient-based devices (#…
Browse files Browse the repository at this point in the history
…182)

reverted to logic used in #11
  • Loading branch information
philnagel authored Feb 21, 2025
1 parent e1ba504 commit 31f83ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function constructClientOptions(request: Request): ClientOptions {
function constructDNSRecord(request: Request): AddressableRecord {
const url = new URL(request.url);
const params = url.searchParams;
let ip = params.get('ip');
let ip = params.get('ip') || params.get('myip');
const hostname = params.get('hostname');

if (ip === null || ip === undefined) {
Expand Down

0 comments on commit 31f83ec

Please sign in to comment.