You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xfr.go
+16-11
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,22 @@ type Transfer struct {
17
17
DialTimeout time.Duration// net.DialTimeout, defaults to 2 seconds
18
18
ReadTimeout time.Duration// net.Conn.SetReadTimeout value for connections, defaults to 2 seconds
19
19
WriteTimeout time.Duration// net.Conn.SetWriteTimeout value for connections, defaults to 2 seconds
20
+
TsigProviderTsigProvider// An implementation of the TsigProvider interface. If defined it replaces TsigSecret and is used for all TSIG operations.
20
21
TsigSecretmap[string]string// Secret(s) for Tsig map[<zonename>]<base64 secret>, zonename must be in canonical form (lowercase, fqdn, see RFC 4034 Section 6.2)
21
22
tsigTimersOnlybool
22
23
}
23
24
24
-
// Think we need to away to stop the transfer
25
+
func (t*Transfer) tsigProvider() TsigProvider {
26
+
ift.TsigProvider!=nil {
27
+
returnt.TsigProvider
28
+
}
29
+
ift.TsigSecret!=nil {
30
+
returntsigSecretProvider(t.TsigSecret)
31
+
}
32
+
returnnil
33
+
}
34
+
35
+
// TODO: Think we need to away to stop the transfer
25
36
26
37
// In performs an incoming transfer with the server in a.
27
38
// If you would like to set the source IP, or some other attribute
0 commit comments