diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2020-06-19 12:06:49 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2020-06-19 12:12:00 -0700 |
| commit | 53fb25fc2fc49deaae48e36044f80ff1eded9aa9 (patch) | |
| tree | 4a4759a4b0a27c1786610198c1503e60497093e6 /ipn | |
| parent | 88c305c8afa15dbee5a6cb8b98e5547cd19f4e7e (diff) | |
| download | tailscale-53fb25fc2fc49deaae48e36044f80ff1eded9aa9.tar.xz tailscale-53fb25fc2fc49deaae48e36044f80ff1eded9aa9.zip | |
all: generate discovery key, plumb it around
Not actually used yet.
Updates #483
Diffstat (limited to 'ipn')
| -rw-r--r-- | ipn/local.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipn/local.go b/ipn/local.go index 2778960b3..fdea6a35a 100644 --- a/ipn/local.go +++ b/ipn/local.go @@ -358,6 +358,10 @@ func (b *LocalBackend) Start(opts Options) error { b.updateFilter(nil) + discoPrivate := key.NewPrivate() + b.e.SetDiscoPrivateKey(discoPrivate) + discoPublic := tailcfg.DiscoKey(discoPrivate.Public()) + var err error if persist == nil { // let controlclient initialize it @@ -372,6 +376,7 @@ func (b *LocalBackend) Start(opts Options) error { KeepAlive: true, NewDecompressor: b.newDecompressor, HTTPTestClient: opts.HTTPTestClient, + DiscoPublicKey: discoPublic, }) if err != nil { return err |
