Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-tls
Commits
f0961cc5
Commit
f0961cc5
authored
Feb 28, 2019
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix package name of tlsdiag
parent
71604ef0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
cmd/tlsdiag.go
cmd/tlsdiag.go
+3
-3
cmd/tlsdiag/client.go
cmd/tlsdiag/client.go
+1
-1
cmd/tlsdiag/key.go
cmd/tlsdiag/key.go
+1
-1
cmd/tlsdiag/server.go
cmd/tlsdiag/server.go
+1
-1
No files found.
cmd/tlsdiag.go
View file @
f0961cc5
...
...
@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/libp2p/go-libp2p-tls/cmd/
cmdimpl
"
"github.com/libp2p/go-libp2p-tls/cmd/
tlsdiag
"
)
func
main
()
{
...
...
@@ -20,9 +20,9 @@ func main() {
var
err
error
switch
role
{
case
"client"
:
err
=
cmdimpl
.
StartClient
()
err
=
tlsdiag
.
StartClient
()
case
"server"
:
err
=
cmdimpl
.
StartServer
()
err
=
tlsdiag
.
StartServer
()
default
:
fmt
.
Println
(
"invalid argument. Expected client / server"
)
return
...
...
cmd/tlsdiag/client.go
View file @
f0961cc5
package
cmdimpl
package
tlsdiag
import
(
"context"
...
...
cmd/tlsdiag/key.go
View file @
f0961cc5
package
cmdimpl
package
tlsdiag
import
(
"crypto/rand"
...
...
cmd/tlsdiag/server.go
View file @
f0961cc5
package
cmdimpl
package
tlsdiag
import
(
"context"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment