shithub: privategrid

Download patch

ref: 233c0cea65a09c4b411579a7cc170a76a79cbdcd
parent: 4f26f984765a3475217e05ca9b341455d5113b3d
author: glenda <glenda@9front.local>
date: Wed Dec 2 19:50:27 EST 2020

client bug fix - stuff is failing with connection refused

--- a/user-scripts/connect
+++ b/user-scripts/connect
@@ -1,5 +1,5 @@
 #! /bin/rc -e
-if($1){
+if(test -n $1){
 	url=$1
 	name='pgrid' # TODO make this a sed script that remove's the dot in an ip/url. for example: fulton.software > fultonsoftware, 192.168.0.32 > 192168032
 
@@ -10,7 +10,7 @@
 }
 srvtls -c tcp!$url!19564 $name^disk /n/$name^disk
 # srvtls -c tcp!$url!19998 $name^ram /n/$name^ram
-srvtls -c tcp!$url! $name^plumb /mnt/plumb
+srvtls -c tcp!$url!19998 $name^plumb /mnt/plumb
 
 if (test /n/$name^disk/init){
 	/n/$name^disk/init