gfx wrote:
因為SSTP的憑證是...(恕刪)
大大的說明真是簡單易懂,感謝啦!有空試試看,畢竟VPN就是用在這而已,方便去大陸時仍可以上FB及台灣網站,感謝啦!
on idle
tell application "System Events"
tell current location of network preferences
set myConnection to the service "VPN_Connection_Name"
if myConnection is not null then
if current configuration of myConnection is not connected then
connect myConnection
end if
end if
end tell
return 120
end tell
end idle