Skip to content

Commit 7d17bf8

Browse files
committed
dnsx: gomobile cannot bind structs
1 parent 3f40298 commit 7d17bf8

15 files changed

Lines changed: 21 additions & 21 deletions

File tree

intra/backend/dnsx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type DNSTransport interface {
132132
// Returns nil if there isn't any.
133133
GetRelay() Proxy
134134
// Measure runs a DNSMeasurement for n number of concurrent queries for upto seconds duration, on this transport.
135-
Measure(mid string, n, seconds int32) DNSMeasurement
135+
Measure(mid string, n, seconds int32) *DNSMeasurement
136136

137137
DNSStatusProvider
138138
}

intra/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (b *bootstrap) GetAddr() string {
294294
return dnsx.NoDNS
295295
}
296296

297-
func (b *bootstrap) Measure(mid string, n, seconds int32) x.DNSMeasurement {
297+
func (b *bootstrap) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
298298
return dnsx.Perf(b, mid, n, seconds)
299299
}
300300

intra/dns53/dot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func (t *dot) GetAddr() string {
400400
return prefix0 + prefix1 + t.addrport
401401
}
402402

403-
func (t *dot) Measure(mid string, n, seconds int32) x.DNSMeasurement {
403+
func (t *dot) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
404404
return dnsx.Perf(t, mid, n, seconds)
405405
}
406406

intra/dns53/errorer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (t *errorer) GetAddr() string {
6565
return t.ipport
6666
}
6767

68-
func (t *errorer) Measure(mid string, n, seconds int32) x.DNSMeasurement {
68+
func (t *errorer) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
6969
return dnsx.Perf(t, mid, n, seconds)
7070
}
7171

intra/dns53/goos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (t *goosr) getAddr() string {
196196
return protect.Localhost + ":53" // dummy
197197
}
198198

199-
func (t *goosr) Measure(mid string, n, seconds int32) x.DNSMeasurement {
199+
func (t *goosr) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
200200
return dnsx.Perf(t, mid, n, seconds)
201201
}
202202

intra/dns53/grounded.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (t *grounded) GetAddr() string {
7474
return t.ipport
7575
}
7676

77-
func (t *grounded) Measure(mid string, n, seconds int32) x.DNSMeasurement {
77+
func (t *grounded) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
7878
return dnsx.Perf(t, mid, n, seconds)
7979
}
8080

intra/dns53/mdns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (t *dnssd) GetAddr() string {
212212
return t.ipport
213213
}
214214

215-
func (t *dnssd) Measure(mid string, n, seconds int32) x.DNSMeasurement {
215+
func (t *dnssd) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
216216
return dnsx.Perf(t, mid, n, seconds)
217217
}
218218

intra/dns53/upstream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (t *transport) getAddr() string {
380380
return s
381381
}
382382

383-
func (t *transport) Measure(mid string, n, seconds int32) x.DNSMeasurement {
383+
func (t *transport) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
384384
return dnsx.Perf(t, mid, n, seconds)
385385
}
386386

intra/dnscrypt/fresh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ func (s *severbyid) GetAddr() string {
7777
}
7878

7979
// Measure implements [dnsx.Transport].
80-
func (s *severbyid) Measure(mid string, n, seconds int32) x.DNSMeasurement {
80+
func (s *severbyid) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
8181
return dnsx.Perf(s, mid, n, seconds)
8282
}

intra/dnscrypt/multiserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ func (p *DcMulti) getAddr() string {
712712
return p.lastAddr
713713
}
714714

715-
func (p *DcMulti) Measure(mid string, n, seconds int32) x.DNSMeasurement {
715+
func (p *DcMulti) Measure(mid string, n, seconds int32) *x.DNSMeasurement {
716716
return dnsx.Perf(p, mid, n, seconds)
717717
}
718718

0 commit comments

Comments
 (0)