Skip to content

Commit

Permalink
fixed proxy support (compatible with smartnode's commit of telebot)
Browse files Browse the repository at this point in the history
  • Loading branch information
denzen84 committed Feb 15, 2019
1 parent 2cd4afb commit b020a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sstgb.c
Expand Up @@ -357,7 +357,7 @@ if (telebot_create(&handle, sstgbconf.token) != TELEBOT_ERROR_NONE) {
telebot_error_e ret;

if (sstgbconf.proxy_addr != NULL) {
ret = telebot_use_proxy(handle, sstgbconf.proxy_addr, sstgbconf.proxy_auth);
ret = telebot_set_proxy(handle, sstgbconf.proxy_addr, sstgbconf.proxy_auth);
if (ret != TELEBOT_ERROR_NONE) {
printf("Failed to init proxy: %d \n", ret);
}
Expand Down

0 comments on commit b020a5a

Please sign in to comment.