Got malformed ws or wss URL when use my own build verion

750 views
Skip to first unread message

Steven Lee

unread,
Nov 11, 2015, 11:01:11 PM11/11/15
to go-gost
I tried to compile gost myself, and when using it, I always got "malformed ws or wss URL", no matter Windows, Linux, Mac OS X, I tried both git master version and last release version.

When I used compiled version you offered, works.

Rain Zen

unread,
Nov 11, 2015, 11:40:04 PM11/11/15
to go-gost
Could you paste your commands (client and server), and logs (add -logtostderr and -v=4) ?


在 2015年11月12日星期四 UTC+8下午12:01:11,Steven Lee写道:

Steven Lee

unread,
Nov 12, 2015, 2:24:09 AM11/12/15
to go-gost
works after modify source code(ws.go),
change from 
c, resp, err := websocket.NewClient(conn, &url.URL{Host: host, Path: "/ws"}, nil, 1024, 1024)
to
c, resp, err := websocket.NewClient(conn, &url.URL{Scheme: "ws",Host: host, Path: "/ws"}, nil, 1024, 1024)

but got another issue, only bind ipv6, for details, please have a look the screen shot.(only found this issue on debian jessie, armv71 version, it is ok on windows 7 64bit, ubuntu 14.03 64bit)

./gost.1 -L=:9090  -L=0.0.0.0:9999 -L=10.0.0.4:9099 -F=http+ws://my-remote-host:8080 -logtostderr -v=4


and I got bad handshake when gost run on debian jessie(armv71 )

I1112 07:09:14.798422   24415 http.go:48] [http] CONNECT api.hostip.info:80 websocket: bad handshake
I1112
07:09:14.799724   24415 http.go:52] HTTP/1.1 503 Service unavailable
Proxy-Agent: gost/2.0
I1112
07:09:14.803734   24415 conn.go:72] 10.0.0.3:61959 disconnected, connections: 0

About my Armv71 Debian Jessie, it a gnuroot app of android, I upgraded from wheezy.

and gost widows 64 bit was compiled under my armv71 debian Jessie, works well.

Rain Zen

unread,
Nov 12, 2015, 2:57:05 AM11/12/15
to go-gost
on dual-stack system, tcp will listen on tcp6, so that's ok. 
you can refer to these pages: 
and

I have no Armv71 debian on my hand, so I can't check this issue for now.



在 2015年11月12日星期四 UTC+8下午3:24:09,Steven Lee写道:

Steven Lee

unread,
Nov 12, 2015, 8:09:25 AM11/12/15
to go-gost
changed to another server, and gost works on debian armv71,great!

btw, ipv6 issue can be ignored. 

:)
Reply all
Reply to author
Forward
0 new messages