PheeZz / wireguard-bot

telegram bot for manage Wireguard server
MIT License
81 stars 20 forks source link

When user disconnect wireguard down #13

Closed Lapparrr closed 1 year ago

Lapparrr commented 1 year ago

hi, I ran into a problem when a user's subscription ends, then wireguard crashes. In the conf, I noticed that the script does not comment on all lines, and as a result, a broken config turns out. So here's a little bit to fix. https://github.com/PheeZz/wireguard-bot/blob/7615935c8ad3f4d0fbc50867b2f1672ffb5a0263/utils/vpn_cfg_work.py#L211
image image