general: add github actions and remove travis

This commit is contained in:
nadoo committed 2019-09-15 20:50:52 +08:00
1 parent d36b8fa394
commit c2425e67de
10 files changed
+136 -26

No files matched your search

+2 -2
View File
@@ -100,14 +100,14 @@ func (rd *Dialer) NextDialer(dstAddr string) proxy.Dialer {
// Dial dials to targer addr and return a conn
func (rd *Dialer) Dial(network, addr string) (net.Conn, error) {
d := rd.NextDialer(addr)
log.F("[Dial] %s => %s", addr, d.Addr())
log.F("[dial] %s => %s", addr, d.Addr())
return d.Dial(network, addr)
}
// DialUDP connects to the given address via the proxy
func (rd *Dialer) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error) {
d := rd.NextDialer(addr)
log.F("[DialUDP] %s => %s", addr, d.Addr())
log.F("[dial-udp] %s => %s", addr, d.Addr())
return d.DialUDP(network, addr)
}