mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 15:37:37 +00:00
Added DERP integration tests
Linting fixes Set listen addr to :8443
This commit is contained in:
@@ -499,15 +499,6 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
DERPPingOption = func(args *derpPingArgs)
|
||||
|
||||
derpPingArgs struct {
|
||||
timeout time.Duration
|
||||
count int
|
||||
}
|
||||
)
|
||||
|
||||
// WithPingTimeout sets the timeout for the ping command.
|
||||
func WithPingTimeout(timeout time.Duration) PingOption {
|
||||
return func(args *pingArgs) {
|
||||
@@ -605,7 +596,7 @@ func (t *TailscaleInContainer) PingViaDERP(hostnameOrIP string, opts ...PingOpti
|
||||
),
|
||||
)
|
||||
if err != nil {
|
||||
fmt.Printf(
|
||||
log.Printf(
|
||||
"failed to run ping command from %s to %s, err: %s",
|
||||
t.Hostname(),
|
||||
hostnameOrIP,
|
||||
|
Reference in New Issue
Block a user