File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ Curl::setRetry($mixed)
284
284
Curl::setTimeout($seconds)
285
285
Curl::setUrl($url, $mixed_data = '')
286
286
Curl::setUserAgent($user_agent)
287
+ Curl::setInterface($interface)
287
288
Curl::setXmlDecoder($mixed)
288
289
Curl::success($callback)
289
290
Curl::unsetHeader($key)
@@ -335,6 +336,7 @@ MultiCurl::setRetry($mixed)
335
336
MultiCurl::setTimeout($seconds)
336
337
MultiCurl::setUrl($url)
337
338
MultiCurl::setUserAgent($user_agent)
339
+ MultiCurl::setInterface($interface)
338
340
MultiCurl::setXmlDecoder($mixed)
339
341
MultiCurl::start()
340
342
MultiCurl::success($callback)
Original file line number Diff line number Diff line change @@ -1222,6 +1222,20 @@ public function setUserAgent($user_agent)
1222
1222
$ this ->setOpt (CURLOPT_USERAGENT , $ user_agent );
1223
1223
}
1224
1224
1225
+ /**
1226
+ * Set Interface
1227
+ *
1228
+ * The name of the outgoing network interface to use.
1229
+ * This can be an interface name, an IP address or a host name.
1230
+ *
1231
+ * @access public
1232
+ * @param $interface
1233
+ */
1234
+ public function setInterface ($ interface )
1235
+ {
1236
+ $ this ->setOpt (CURLOPT_INTERFACE , $ interface );
1237
+ }
1238
+
1225
1239
/**
1226
1240
* Attempt Retry
1227
1241
*
Original file line number Diff line number Diff line change @@ -787,6 +787,20 @@ public function setUserAgent($user_agent)
787
787
$ this ->setOpt (CURLOPT_USERAGENT , $ user_agent );
788
788
}
789
789
790
+ /**
791
+ * Set Interface
792
+ *
793
+ * The name of the outgoing network interface to use.
794
+ * This can be an interface name, an IP address or a host name.
795
+ *
796
+ * @access public
797
+ * @param $interface
798
+ */
799
+ public function setInterface ($ interface )
800
+ {
801
+ $ this ->setOpt (CURLOPT_INTERFACE , $ interface );
802
+ }
803
+
790
804
/**
791
805
* Start
792
806
*
You can’t perform that action at this time.
0 commit comments