-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: skip HTTP auth when connected via USB #104
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Moritz Poldrack <[email protected]>
Nice! |
I had a deeper though about it. I think we can leave it as a choice to the user. It is useful to people using both, and to be honest, the browser are querying only once. What is the use case you are fulfilling with this feature? |
It's useful when starting the server once and then "forgetting" about it. My employers network does not allow for LAN (PC) to WIFI (remarkable) access, while most other networks do. Thus I am required to connect via USB. When connecting via WIFI however I want the authentication to be required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
golint: 93%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
ineffassign: 100%
license: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (98.9%)
Files: 31
Issues: 2
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 93%
internal/remarkable/ip.go
Line 10: warning: exported function HostsIP should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
"strings" | ||
) | ||
|
||
func HostsIP(addr string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported function HostsIP should have comment or be unexported (golint)
When connected via USB it doesn't make a whole lot of sense to ask for a password.