Skip to content

Adding proxy

Marlester edited this page Aug 25, 2024 · 3 revisions

Example of adding proxy:

    InetSocketAddress address = new InetSocketAddress(host, port);
    ProxyInfo proxy = new ProxyInfo(ProxyInfo.Type.SOCKS5, address, username, password);

    BotSession bot = new BotSession("Steve", "6.113.148.5", 22605, BotSettings.builder()
        .proxy(proxy).build());
Clone this wiki locally