You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-18 09:51:28 +02:00
98 lines
2.8 KiB
Plaintext
Vendored
98 lines
2.8 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 9
|
|
|
|
description: Get proxy settings and other functions to work with TCP in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, TCP]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
import Admonition from '@theme/Admonition';
|
|
|
|
# Get proxy settings
|
|
Creates a structure of proxy server settings for the connection
|
|
|
|
|
|
|
|
<Tabs>
|
|
<TabItem value="params" label="Parameters" default>
|
|
|
|
`Function GetProxySettings(Val Address, Val Port, Val View = "socks5", Val Login = Undefined, Val Password = Undefined) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Address | --addr | String | ✔ | Proxy address |
|
|
| Port | --port | Number | ✔ | Proxy port |
|
|
| View | --type | String | ✖ | Proxy type: socks5, socks4, http |
|
|
| Login | --login | String, Undefined | ✖ | Authorization login, if required |
|
|
| Password | --pass | String, Undefined | ✖ | Authorization password, if required |
|
|
|
|
|
|
<div className="return-value-note">
|
|
<div className="return-value-note__title">Returns</div>
|
|
<div className="return-value-note__value">
|
|
Structure Of KeyAndValue - Proxy settings structure
|
|
</div>
|
|
</div>
|
|
|
|
</TabItem>
|
|
<TabItem value="extended" label={<span>Advanced call{' '}<a href="/docs/Start/Advanced-call" target="_blank" rel="noreferrer" title="About advanced call" onClick={(e) => e.stopPropagation()}>?</a></span>}>
|
|
|
|
| Parameter | Description |
|
|
|---|---|
|
|
| dontwait | Сoздaет фobutinoе forдaнandе and returns еyo Data (only for 1C and OneScript) |
|
|
|
|
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
ProxyType = "socks5"; // http, socks5, socks4
|
|
|
|
ProxyAddress = "127.0.0.1";
|
|
ProxyPort = "1080";
|
|
ProxyLogin = "proxyuser";
|
|
ProxyPassword = "12we...";
|
|
|
|
Result = OPI_TCP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint tcp GetProxySettings \
|
|
--addr "127.0.0.1" \
|
|
--port 1080 \
|
|
--type "socks5" \
|
|
--login "proxyuser" \
|
|
--pass "***"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint tcp GetProxySettings ^
|
|
--addr "127.0.0.1" ^
|
|
--port 1080 ^
|
|
--type "socks5" ^
|
|
--login "proxyuser" ^
|
|
--pass "***"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"server": "127.0.0.1",
|
|
"port": 1080,
|
|
"proxy_type": "socks5",
|
|
"login": "proxyuser",
|
|
"password": "***"
|
|
}
|
|
```
|