{"action":"created","issue":{"url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/337","repository_url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN","labels_url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/337/comments","events_url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/337/events","html_url":"https://github.com/SoftEtherVPN/SoftEtherVPN/pull/337","id":237348516,"node_id":"MDExOlB1bGxSZXF1ZXN0MTI2NjMyMjI5","number":337,"title":"Put TUN down on client disconnect.","user":{"login":"joshperry","id":298053,"node_id":"MDQ6VXNlcjI5ODA1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/298053?v=4","gravatar_id":"","url":"https://api.github.com/users/joshperry","html_url":"https://github.com/joshperry","followers_url":"https://api.github.com/users/joshperry/followers","following_url":"https://api.github.com/users/joshperry/following{/other_user}","gists_url":"https://api.github.com/users/joshperry/gists{/gist_id}","starred_url":"https://api.github.com/users/joshperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshperry/subscriptions","organizations_url":"https://api.github.com/users/joshperry/orgs","repos_url":"https://api.github.com/users/joshperry/repos","events_url":"https://api.github.com/users/joshperry/events{/privacy}","received_events_url":"https://api.github.com/users/joshperry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-06-20T21:18:35Z","updated_at":"2018-08-03T09:27:09Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/pulls/337","html_url":"https://github.com/SoftEtherVPN/SoftEtherVPN/pull/337","diff_url":"https://github.com/SoftEtherVPN/SoftEtherVPN/pull/337.diff","patch_url":"https://github.com/SoftEtherVPN/SoftEtherVPN/pull/337.patch"},"body":"On startup client creates TUN interface in UP state and kept it UP even\r\nif connection to the server was lost. Creating interface in DOWN state,\r\nturning it UP on successful (re-)connection to server and DOWN on either\r\ndisconnect or connection loss would enable DHCP client (say dhclient5)\r\nto detect necessity for lease renewal.\r\n\r\nAdded a client configuration parameter to create TUN interface in DOWN\r\nstate and commands to enable, disable, and query the configuration\r\nparameter.\r\nEnabling the parameter causes client to put all unused TUN interfaces\r\nDOWN, create new TUN interfaces in DOWN state, and turn TUN interfaces\r\ncorresponding to active sessions DOWN on connection loss or\r\ndisconnecting from server.\r\nDisabling the parameter forces client to turn all TUN interfaces UP and\r\ncreate new TUN interfaces in UP state.\r\nDefault value is 'Disable'."},"comment":{"url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/comments/410198705","html_url":"https://github.com/SoftEtherVPN/SoftEtherVPN/pull/337#issuecomment-410198705","issue_url":"https://api.github.com/repos/SoftEtherVPN/SoftEtherVPN/issues/337","id":410198705,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDE5ODcwNQ==","user":{"login":"davidebeatrici","id":5897523,"node_id":"MDQ6VXNlcjU4OTc1MjM=","avatar_url":"https://avatars3.githubusercontent.com/u/5897523?v=4","gravatar_id":"","url":"https://api.github.com/users/davidebeatrici","html_url":"https://github.com/davidebeatrici","followers_url":"https://api.github.com/users/davidebeatrici/followers","following_url":"https://api.github.com/users/davidebeatrici/following{/other_user}","gists_url":"https://api.github.com/users/davidebeatrici/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebeatrici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebeatrici/subscriptions","organizations_url":"https://api.github.com/users/davidebeatrici/orgs","repos_url":"https://api.github.com/users/davidebeatrici/repos","events_url":"https://api.github.com/users/davidebeatrici/events{/privacy}","received_events_url":"https://api.github.com/users/davidebeatrici/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T09:27:09Z","updated_at":"2018-08-03T09:27:09Z","author_association":"MEMBER","body":"Because the network interface's state should always reflect the state of the associated connection, especially because you can use it in a script to easily detect whether the VPN is connected."}}
{"actor":{"display_login":"davidebeatrici"}}