diff options
Diffstat (limited to 'transport.go')
| -rw-r--r-- | transport.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/transport.go b/transport.go index 23514b4..bb9f2b3 100644 --- a/transport.go +++ b/transport.go @@ -84,17 +84,17 @@ type Transport struct { ptr *C.git_transport } -// SmartProxyOptions gets a copy of the proxy options for this transport. -func (t *Transport) SmartProxyOptions() (*ProxyOptions, error) { +// SmartRemoteConnectOptions gets a copy of the proxy options for this transport. +func (t *Transport) SmartRemoteConnectOptions() (*RemoteConnectOptions, error) { runtime.LockOSThread() defer runtime.UnlockOSThread() - var cpopts C.git_proxy_options - if ret := C.git_transport_smart_proxy_options(&cpopts, t.ptr); ret < 0 { + var copts C.git_remote_connect_options + if ret := C.git_transport_remote_connect_options(&copts, t.ptr); ret < 0 { return nil, MakeGitError(ret) } - return proxyOptionsFromC(&cpopts), nil + return remoteConnectOptionsFromC(&copts), nil } // SmartCredentials calls the credentials callback for this transport. |
