Skip to content

Commit

Permalink
fix for new domain-name api
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Jul 22, 2019
1 parent 55ded2f commit 6484325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirage/resolver_mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module Make_with_stack (T: Mirage_time_lwt.S) (S: Mirage_stack_lwt.V4) = struct
(match Ipaddr.V4.of_string host with
| Ok addr -> Lwt.return (Ok addr)
| Error _ ->
let hostname = Domain_name.of_string_exn host in
let hostname = Domain_name.host_exn (Domain_name.of_string_exn host) in
DNS.gethostbyname dns hostname) >|= function
| Error (`Msg err) -> `Unknown ("name resolution failed: " ^ err)
| Ok addr ->
Expand Down

0 comments on commit 6484325

Please sign in to comment.