diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index 8b54ad9..051d55f 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -68,6 +68,12 @@ func WithRelayMode(rMode *iroh.RelayMode) Option { } } +func WithSecretKey(secretKey []byte) Option { + return func(endpointBuilder *iroh.EndpointBuilder) error { + return endpointBuilder.SecretKey(secretKey) + } +} + func WithDebug() Option { return func(endpointBuilder *iroh.EndpointBuilder) error { lvl := new(slog.LevelVar)