c 0 742
i 1
    bind fairopen = false
c 742 4
i 2
        if list_get(args, ai) == "--sel" { st_set("gx_sel", list_get(args, ai + 1.0)) }
        if list_get(args, ai) == "--fairopen" { bind fairopen = true }
c 746 19
i 15
    if st_get("gx_sel", "") != "" { gx_make_diff(st_get("gx_sel", ""), "") }
    if fairopen {
        if sx_root() != "" {
            bind pw = random_hex(9.0)
            make_dir(sx_dir() + "/fair")
            ssh_config(7447.0, "pilgrim", pw, sx_dir() + "/fair/host_ed25519")
            if ssh_serve() {
                bind host = env_get("COMPUTERNAME", "yourhost")
                st_set("gx_fair_on", 1.0)
                st_set("gx_fair_trib", 1.0)
                st_set("gx_fair_wpw", random_hex(9.0))
                st_set("gx_fair_link", "miao+ssh://pilgrim:" + pw + "@" + host + ":7447/" + path_name(sx_root()))
            }
        }
    }
c 765 56
