Improve config

This commit is contained in:
Bolke de Bruin 2020-07-21 10:29:18 +02:00
parent 01345b9416
commit 097a2deca7
4 changed files with 34 additions and 27 deletions

View file

@ -22,8 +22,8 @@ type RedirectFlags struct {
Drive bool
Printer bool
Pnp bool
disableAll bool
enableAll bool
DisableAll bool
EnableAll bool
}
type Handler struct {
@ -408,10 +408,10 @@ func createPacket(pktType uint16, data []byte) (packet []byte) {
func makeRedirectFlags(flags RedirectFlags) int {
var redir = 0
if flags.disableAll {
if flags.DisableAll {
return HTTP_TUNNEL_REDIR_DISABLE_ALL
}
if flags.enableAll {
if flags.EnableAll {
return HTTP_TUNNEL_REDIR_ENABLE_ALL
}