shithub: tlsclient

Download patch

ref: e8f24d37aaa10b30915419e213ee0ecf9e7a1460
parent: 3e18b560f030c488fd57deae9a38b67e3f388e3b
author: Jacob Moody <moody@posixcafe.org>
date: Sat May 22 18:02:09 EDT 2021

-R implies rcpu port

--- a/9cpu
+++ b/9cpu
@@ -30,4 +30,4 @@
 	cmd=$*
 fi
 
-USER=$user AUTH=$auth CPU=$cpu tlsclient -R -p 17019 $cmd
+USER=$user AUTH=$auth CPU=$cpu tlsclient -R $cmd
--- a/cpu.c
+++ b/cpu.c
@@ -135,6 +135,9 @@
 		case 'R': Rflag++; break;
 	} ARGEND
 
+	if(Rflag)
+		port = "17019";
+
 	if(user == nil || host == nil || authserver == nil || port == nil)
 		usage();