client: support servers which don't provide UDP ports (#21)

This commit is contained in:
aler9
2021-01-20 23:23:35 +01:00
parent c6e0294e1c
commit b9dfe1b310
4 changed files with 50 additions and 10 deletions

View File

@@ -39,6 +39,15 @@ type ClientConf struct {
// It defaults to &tls.Config{InsecureSkipVerify:true}
TLSConfig *tls.Config
// disable being redirected to other servers, that can happen during Describe().
// It defaults to false.
RedirectDisable bool
// enable communication with servers which don't provide server ports.
// this can be a security issue.
// It defaults to false.
AnyPortEnable bool
// timeout of read operations.
// It defaults to 10 seconds.
ReadTimeout time.Duration
@@ -47,10 +56,6 @@ type ClientConf struct {
// It defaults to 10 seconds.
WriteTimeout time.Duration
// disable being redirected to other servers, that can happen during Describe().
// It defaults to false.
RedirectDisable bool
// read buffer count.
// If greater than 1, allows to pass buffers to routines different than the one
// that is reading frames.