ref: 78bed738e1a8c3bbffaa4de6015187741cc384ac
parent: 87385accde5dd15a6858b8157a313f069884c9bf
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Oct 18 15:30:14 EDT 2020
vncv: pick an auth type that we support We used to pick the highest auth type regardless of whether we supported it. Now we filter down to types that we support.
--- a/sys/src/cmd/vnc/auth.c
+++ b/sys/src/cmd/vnc/auth.c
@@ -77,7 +77,7 @@
type == ANoAuth ? "None" :
type == AVncAuth ? "VNC" : "Unknown");
}
- if(type > auth)
+ if(type > auth && type <= AVncAuth)
auth = type;
}
return auth;