Skip to content

Listen on http locally#41

Merged
lawrencejones merged 2 commits intomasterfrom
lawrence-listen-locally-insecure
Feb 5, 2018
Merged

Listen on http locally#41
lawrencejones merged 2 commits intomasterfrom
lawrence-listen-locally-insecure

Conversation

@lawrencejones
Copy link
Copy Markdown
Contributor

It would be really useful for draupnir to listen on HTTP for connections
from the same box. This enables usage of the draupnir-client locally,
pointing at localhost for the connection, without having issues with
certificates.

@lawrencejones lawrencejones requested a review from hmac February 3, 2018 23:43
Comment thread main.go
func(error) { serverInsecure.Shutdown(context.Background()) },
)

if err := g.Run(); err != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well use the logger here, instead of log

Comment thread main.go Outdated
if err != nil {

// We then listen for insecure connections on localhost, allowing draupnir-client to be
// used locally on the draupnir box to administrate the server.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be more generic here - , allowing connections from within the host

It would be really useful for draupnir to listen on HTTP for connections
from the same box. This enables usage of the draupnir-client locally,
pointing at localhost for the connection, without having issues with
certificates.
@lawrencejones lawrencejones force-pushed the lawrence-listen-locally-insecure branch from afd2abf to 30688e8 Compare February 5, 2018 09:13
@lawrencejones lawrencejones merged commit 146f5ad into master Feb 5, 2018
@lawrencejones lawrencejones deleted the lawrence-listen-locally-insecure branch February 5, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants