From 3135eb61372faaa93c9a03e45dd0d6beaf9632a9 Mon Sep 17 00:00:00 2001 From: Pyry Kovanen Date: Wed, 17 Aug 2022 14:08:33 +0300 Subject: [PATCH 1/2] dns-address: subscribe before poke --- pkg/arvo/ted/dns/address.hoon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/ted/dns/address.hoon b/pkg/arvo/ted/dns/address.hoon index feb9662c52..6a46a8edc9 100644 --- a/pkg/arvo/ted/dns/address.hoon +++ b/pkg/arvo/ted/dns/address.hoon @@ -30,12 +30,12 @@ ?. good %+ strand-fail:strandio %bail-early-self-check [>"couldn't access ship on port 80"< ~] + ;< our=@p bind:m get-our:strandio + ;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our)) ;< ~ bind:m (poke:strandio collector-app %dns-address !>([%if if])) =/ msg=cord (cat 3 'request for DNS sent to ' (scot %p p:collector-app)) ;< ~ bind:m (app-message:strandio %dns msg ~) - ;< our=@p bind:m get-our:strandio - ;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our)) =/ msg=cord (cat 3 'awaiting response from ' (scot %p p:collector-app)) ;< ~ bind:m (app-message:strandio %dns msg ~) From 4016211bc0caf1443de03b97feb0753024dfadcf Mon Sep 17 00:00:00 2001 From: Tinnus Napbus Date: Thu, 18 Aug 2022 23:22:57 +1200 Subject: [PATCH 2/2] -dns-address: fix wire mismatch --- pkg/arvo/ted/dns/address.hoon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/ted/dns/address.hoon b/pkg/arvo/ted/dns/address.hoon index 6a46a8edc9..078e00ad78 100644 --- a/pkg/arvo/ted/dns/address.hoon +++ b/pkg/arvo/ted/dns/address.hoon @@ -31,7 +31,7 @@ %+ strand-fail:strandio %bail-early-self-check [>"couldn't access ship on port 80"< ~] ;< our=@p bind:m get-our:strandio - ;< ~ bind:m (watch:strandio /sub collector-app /(scot %p our)) + ;< ~ bind:m (watch:strandio /response collector-app /(scot %p our)) ;< ~ bind:m (poke:strandio collector-app %dns-address !>([%if if])) =/ msg=cord (cat 3 'request for DNS sent to ' (scot %p p:collector-app)) @@ -45,7 +45,7 @@ =/ m (strand ,~) ^- form:m ;< our=ship bind:m get-our:strandio - ;< =cage bind:m (take-fact:strandio /(scot %p our)) + ;< =cage bind:m (take-fact:strandio /response) ?> ?=(%dns-binding p.cage) =/ =binding:dns !<(binding:dns q.cage) ;< good=? bind:m (turf-confirm-install:libdns turf.binding)