Skip to content

Commit c88d5a7

Browse files
committed
afs: Enable IPv6 DNS lookups
Remove the restriction on DNS lookup upcalls that prevents ipv6 addresses from being looked up. Signed-off-by: David Howells <[email protected]>
1 parent 0aac4bc commit c88d5a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/afs/addr_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ struct afs_addr_list *afs_dns_query(struct afs_cell *cell, time64_t *_expiry)
216216
_enter("%s", cell->name);
217217

218218
ret = dns_query("afsdb", cell->name, cell->name_len,
219-
"ipv4", &vllist, _expiry);
219+
"", &vllist, _expiry);
220220
if (ret < 0)
221221
return ERR_PTR(ret);
222222

fs/afs/dynroot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static int afs_probe_cell_name(struct dentry *dentry)
4646
return 0;
4747
}
4848

49-
ret = dns_query("afsdb", name, len, "ipv4", NULL, NULL);
49+
ret = dns_query("afsdb", name, len, "", NULL, NULL);
5050
if (ret == -ENODATA)
5151
ret = -EDESTADDRREQ;
5252
return ret;

0 commit comments

Comments
 (0)