Fix broken call to map in lookup-optional-args.
This commit is contained in:
parent
da98c4b78c
commit
8111eddf82
|
@ -1175,14 +1175,14 @@
|
|||
;; (dns-lookup-name nameserver) is called.
|
||||
;; use-cache? defaults to #t
|
||||
(define (lookup-optional-args args)
|
||||
(if (null? args)
|
||||
(if (null? args)
|
||||
(values (map ip-string->address32 (dns-find-nameserver-list)) #t)
|
||||
(values
|
||||
(map (lambda (nameserver)
|
||||
(cond
|
||||
((address32? nameserver) nameserver)
|
||||
((ip-string? nameserver) (ip-string->address32 nameserver))
|
||||
(else (map (dns-lookup-name nameserver (dns-find-nameserver-list))))))
|
||||
(else (map dns-lookup-name (dns-find-nameserver-list)))))
|
||||
(car args))
|
||||
(if (null? (cdr args))
|
||||
#t
|
||||
|
|
Loading…
Reference in New Issue