Skip to content
Snippets Groups Projects
Commit 35c5fea0 authored by rswindell's avatar rswindell
Browse files

Merlin mod: If no hostname is specified, uses server's hostname.

parent f96d2580
Branches
Tags
No related merge requests found
......@@ -6,10 +6,12 @@ if(argc>0 && argv[0].indexOf('@')!=-1)
dest = argv[0];
else if((dest = prompt("User (user@hostname)"))==null)
exit();
if((hp = dest.indexOf('@'))==-1) {
alert("Invalid user");
exit();
dest += "@" + system.host_name;
hp = dest.indexOf('@')
}
host = dest.slice(hp+1);
sock = new Socket();
//sock.debug = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment