Skip to content

Commit 31f83ec

Browse files
authored
fix: fix regression that removed support for ddclient-based devices (#182)
reverted to logic used in #11
1 parent e1ba504 commit 31f83ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function constructClientOptions(request: Request): ClientOptions {
3535
function constructDNSRecord(request: Request): AddressableRecord {
3636
const url = new URL(request.url);
3737
const params = url.searchParams;
38-
let ip = params.get('ip');
38+
let ip = params.get('ip') || params.get('myip');
3939
const hostname = params.get('hostname');
4040

4141
if (ip === null || ip === undefined) {

0 commit comments

Comments
 (0)