refactor: Some adjustments
This commit is contained in:
parent
9461bcd44e
commit
b553dd749b
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ func (h *HTTPVehicle) Read() ([]byte, error) {
|
|||
}
|
||||
|
||||
req, err := http.NewRequest(http.MethodGet, uri.String(), nil)
|
||||
req.Header.Set("user-agent", netHttp.UA)
|
||||
req.Header.Set("User-Agent", netHttp.UA)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -27,7 +27,7 @@ type GVHandler struct {
|
|||
func (gh *GVHandler) HandleTCP(tunConn adapter.TCPConn) {
|
||||
id := tunConn.ID()
|
||||
|
||||
rAddr := &net.UDPAddr{
|
||||
rAddr := &net.TCPAddr{
|
||||
IP: net.IP(id.LocalAddress),
|
||||
Port: int(id.LocalPort),
|
||||
Zone: "",
|
||||
|
|
Loading…
Reference in a new issue