├── .gitignore
├── LICENSE.txt
├── README.md
├── addon.xml
├── changelog.txt
├── default.py
├── icon.png
└── resources
├── __init__.py
├── images
├── ad.png
├── ae.png
├── af.png
├── ag.png
├── ai.png
├── al.png
├── am.png
├── ao.png
├── aq.png
├── ar.png
├── as.png
├── at.png
├── au.png
├── aw.png
├── ax.png
├── az.png
├── ba.png
├── bb.png
├── bd.png
├── be.png
├── bf.png
├── bg.png
├── bh.png
├── bi.png
├── bj.png
├── bl.png
├── bm.png
├── bn.png
├── bo.png
├── bq.png
├── br.png
├── bs.png
├── bt.png
├── bv.png
├── bw.png
├── by.png
├── bz.png
├── ca.png
├── cc.png
├── cd.png
├── cf.png
├── cg.png
├── ch.png
├── ci.png
├── ck.png
├── cl.png
├── cm.png
├── cn.png
├── co.png
├── cr.png
├── cu.png
├── cv.png
├── cw.png
├── cx.png
├── cy.png
├── cz.png
├── de.png
├── dj.png
├── dk.png
├── dm.png
├── do.png
├── dz.png
├── ec.png
├── ee.png
├── eg.png
├── eh.png
├── er.png
├── es.png
├── et.png
├── fi.png
├── fj.png
├── fk.png
├── fm.png
├── fo.png
├── fr.png
├── ga.png
├── gb.png
├── gd.png
├── ge.png
├── gf.png
├── gg.png
├── gh.png
├── gi.png
├── gl.png
├── gm.png
├── gn.png
├── gp.png
├── gq.png
├── gr.png
├── gs.png
├── gt.png
├── gu.png
├── gw.png
├── gy.png
├── hk.png
├── hm.png
├── hn.png
├── hr.png
├── ht.png
├── hu.png
├── id.png
├── ie.png
├── il.png
├── im.png
├── in.png
├── io.png
├── iq.png
├── ir.png
├── is.png
├── it.png
├── je.png
├── jm.png
├── jo.png
├── jp.png
├── ke.png
├── kg.png
├── kh.png
├── ki.png
├── km.png
├── kn.png
├── kp.png
├── kr.png
├── kw.png
├── ky.png
├── kz.png
├── la.png
├── lb.png
├── lc.png
├── li.png
├── lk.png
├── lr.png
├── ls.png
├── lt.png
├── lu.png
├── lv.png
├── ly.png
├── ma.png
├── mc.png
├── md.png
├── me.png
├── mf.png
├── mg.png
├── mh.png
├── mk.png
├── ml.png
├── mm.png
├── mn.png
├── mo.png
├── mp.png
├── mq.png
├── mr.png
├── ms.png
├── mt.png
├── mu.png
├── mv.png
├── mw.png
├── mx.png
├── my.png
├── mz.png
├── na.png
├── nc.png
├── ne.png
├── nf.png
├── ng.png
├── ni.png
├── nl.png
├── no.png
├── np.png
├── nr.png
├── nu.png
├── nz.png
├── om.png
├── pa.png
├── pe.png
├── pf.png
├── pg.png
├── ph.png
├── pk.png
├── pl.png
├── pm.png
├── pn.png
├── pr.png
├── ps.png
├── pt.png
├── pw.png
├── py.png
├── qa.png
├── re.png
├── ro.png
├── rs.png
├── ru.png
├── rw.png
├── sa.png
├── sb.png
├── sc.png
├── sd.png
├── se.png
├── sg.png
├── sh.png
├── si.png
├── sj.png
├── sk.png
├── sl.png
├── sm.png
├── sn.png
├── so.png
├── sr.png
├── ss.png
├── st.png
├── sv.png
├── sx.png
├── sy.png
├── sz.png
├── tc.png
├── td.png
├── tf.png
├── tg.png
├── th.png
├── tj.png
├── tk.png
├── tl.png
├── tm.png
├── tn.png
├── to.png
├── tr.png
├── tt.png
├── tv.png
├── tw.png
├── tz.png
├── ua.png
├── ug.png
├── um.png
├── us.png
├── uy.png
├── uz.png
├── va.png
├── vc.png
├── ve.png
├── vg.png
├── vi.png
├── vn.png
├── vu.png
├── wf.png
├── ws.png
├── ye.png
├── yt.png
├── za.png
├── zm.png
├── zw.png
└── zz.png
├── language
└── english
│ └── strings.xml
├── lib
├── __init__.py
├── kodisettings.py
├── kodiutils.py
└── openvpn.py
└── settings.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | resources/*.pyc
2 | resources/lib/*.pyc
3 | *.pyc
4 | *.pyo
5 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 |
3 | Version 3, 29 June 2007
4 |
5 | Copyright © 2007 Free Software Foundation, Inc.
6 |
7 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The GNU General Public License is a free, copyleft license for software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
14 |
15 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
16 |
17 | To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
18 |
19 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
20 |
21 | Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
22 |
23 | For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
24 |
25 | Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
26 |
27 | Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
28 |
29 | The precise terms and conditions for copying, distribution and modification follow.
30 |
31 | TERMS AND CONDITIONS
32 |
33 | 0. Definitions.
34 | “This License” refers to version 3 of the GNU General Public License.
35 |
36 | “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
37 |
38 | “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
39 |
40 | To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
41 |
42 | A “covered work” means either the unmodified Program or a work based on the Program.
43 |
44 | To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
45 |
46 | To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
47 |
48 | An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
49 |
50 | 1. Source Code.
51 | The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
52 |
53 | A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
54 |
55 | The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
56 |
57 | The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
58 |
59 | The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
60 |
61 | The Corresponding Source for a work in source code form is that same work.
62 |
63 | 2. Basic Permissions.
64 | All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
65 |
66 | You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
67 |
68 | Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
69 |
70 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
71 | No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
72 |
73 | When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
74 |
75 | 4. Conveying Verbatim Copies.
76 | You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
77 |
78 | You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
79 |
80 | 5. Conveying Modified Source Versions.
81 | You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
82 |
83 | a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
84 | b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
85 | c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
86 | d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
87 | A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
88 |
89 | 6. Conveying Non-Source Forms.
90 | You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
91 |
92 | a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
93 | b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
94 | c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
95 | d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
96 | e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
97 | A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
98 |
99 | A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
100 |
101 | “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
102 |
103 | If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
104 |
105 | The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
106 |
107 | Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
108 |
109 | 7. Additional Terms.
110 | “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
111 |
112 | When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
113 |
114 | Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
115 |
116 | a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
117 | b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
118 | c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
119 | d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
120 | e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
121 | f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
122 | All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
123 |
124 | If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
125 |
126 | Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
127 |
128 | 8. Termination.
129 | You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
130 |
131 | However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
132 |
133 | Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
134 |
135 | Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
136 |
137 | 9. Acceptance Not Required for Having Copies.
138 | You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
139 |
140 | 10. Automatic Licensing of Downstream Recipients.
141 | Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
142 |
143 | An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
144 |
145 | You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
146 |
147 | 11. Patents.
148 | A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
149 |
150 | A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
151 |
152 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
153 |
154 | In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
155 |
156 | If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
157 |
158 | If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
159 |
160 | A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
161 |
162 | Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
163 |
164 | 12. No Surrender of Others' Freedom.
165 | If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
166 |
167 | 13. Use with the GNU Affero General Public License.
168 | Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
169 |
170 | 14. Revised Versions of this License.
171 | The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
172 |
173 | Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
174 |
175 | If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
176 |
177 | Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
178 |
179 | 15. Disclaimer of Warranty.
180 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
181 |
182 | 16. Limitation of Liability.
183 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
184 |
185 | 17. Interpretation of Sections 15 and 16.
186 | If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
187 |
188 | END OF TERMS AND CONDITIONS
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This repository has been set to archived (read-only) as I no longer use Kodi, so development of this plugin has stopped.
2 | ==========
3 |
4 | OpenVPN for Kodi
5 | ==========
6 | A script that allows you to control OpenVPN from within Kodi.
7 |
8 | Features
9 | -----
10 | - Start and stop OpenVPN from with Kodi.
11 | - Setup multiple VPN connections.
12 | - Display current geo-location.
13 |
14 | Screenshots
15 | -----
16 |
17 |
18 |
19 | Installation
20 | ------
21 | Download the latest zip file and install the addon. See [http://kodi.wiki/view/HOW-TO:Install_an_Add-on_from_a_zip_file][1] for more details on installing addons from zip file.
22 |
23 | Usage
24 | ------
25 | The SimilarTracks script can be accessed from the Programs menu or called using the RunScript builtin function (RunScript(script.openvpn)). The script can be passed the following arguments; e.g. RunScript(script.openvpn, Los Angeles).
26 |
27 | **import**: Run the import configuration dialog.
28 |
29 | **delete**: Run the delete configuration dialog.
30 |
31 | **location**: Display the current geo-location. Uses IPInfoDB API.
32 |
33 | **disconnect**: Disconnect the current OpenVPN connection.
34 |
35 | **\**: Run the specified OpenVPN configuration.
36 |
37 | Settings
38 | --------
39 | The following settings are available.
40 |
41 | **Import OpenVPN Configuration File**: Selecting this setting invokes the import configuration dialog.
42 |
43 | **Delete OpenVPN Configuration File**: Selecting the option invokes the delete configuration dialog.
44 |
45 | **OpenVPN**: Set this to the OpenVPN binary. Default: /usr/bin/openvp
46 |
47 | **Management IP Address**: Use this option to change the IP address used by OpenVPN management interface. Default: 127.0.0.1
48 |
49 | **Management Port**: Use this option to change the port used by the OpenVPN management interface. Default: 1337
50 |
51 | **Additional Arguments**: Use this option to specify any extra command line arguments to be supplied to OpenVPN.
52 |
53 | **Use sudo when running OpenVPN**: Set this option to true if you require OpenVPN to be run using sudo. Default: false
54 |
55 | **Password is required**: Set to true if a password is required when using sudo. Default: true
56 |
57 | FAQ
58 | ---
59 |
60 | **Is this plugin available in a Kodi addons repository?** No
61 |
62 | **I can't get the OpenVPN plugin to work on Raspberry Pi?** Before asking me for help I suggest reading the following [guide][3].
63 |
64 | License
65 | ------
66 | OpenVPN for Kodi is licensed under the [GPL 3.0 license][2].
67 |
68 | [1]: http://kodi.wiki/view/HOW-TO:Install_an_Add-on_from_a_zip_file
69 | [2]: http://www.gnu.org/licenses/gpl-3.0.html
70 | [3]: http://forums.tvaddons.ag/threads/24769-How-to-set-up-your-VPN-on-raspberry-pi-using-Brain-Hornsby-Openvpn-for-XBMC
71 |
--------------------------------------------------------------------------------
/addon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | all
10 | OpenVPN addon for Kodi.
11 | This addon allows you to set up a number of OpenVPN configurations, which you can then run from Kodi.
12 | For more information on setting up this addon see http://brianhornsby.com/kodi_plugins/openvpn
13 | GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007
14 | http://brianhornsby.com/kodi_addons/openvpn
15 | https://github.com/brianhornsby/script.openvpn
16 |
17 |
18 |
--------------------------------------------------------------------------------
/changelog.txt:
--------------------------------------------------------------------------------
1 | *** 3.0.0 ***
2 | Updated plugin to use Kodi name. Updated copyright date. [1a88f6f]
3 |
4 | *** 2.1.0 ***
5 | Updated xbmc.python version. Fixed issue with reading running OpenVPN configuration on OpenELEC. [0e132c6]
6 | Changed country flag images to https://github.com/koppi/iso-country-flags-svg-collection. [3dc6b7e]
7 |
8 | *** 2.0.1 ***
9 | Fixes for issues #8 and #9.
10 |
11 | *** 2.0.0 ***
12 | Complete rewrite of code and the way the script works.
13 |
14 | *** 1.2.0 ***
15 | Added ability to specify an ovpn file.
16 |
17 | *** 1.1.2 ***
18 | Display VPN identifier in notification when starting OpenVPN.
19 |
20 | *** 1.1.1 ***
21 | Only display settings VPN entries if vpn id is specified, otherwise ignore.
22 | Updated code to pep8 coding style.
23 | Changed ip location api being used by addon.
24 |
25 | *** 1.1.0 ***
26 | Added option to define vpn connections in addons settings, rather than in a file.
27 |
28 | *** 1.0.5 ***
29 | Added images to notification.
30 | Added ability to call vpn connection directly by specifying vpn index as argument.
31 |
32 | *** 1.0.0 ***
33 | Set addon version number to 1.0.0.
34 | Changed tun-mtu value to 1500.
35 |
36 | *** 0.6.0 ***
37 | Fixed geolocation issue.
38 |
39 | *** 0.5.0 ***
40 | Fixed TCP issues.
41 |
42 | *** 0.4.0 ***
43 | Major changes to how openvpn-xbmc works.
44 |
45 | *** 0.3.0 ***
46 |
47 | Added timelimit for configs.
48 |
49 | *** 0.2.0 ***
50 |
51 | Minor code changes.
52 |
53 | *** 0.1.0 ***
54 |
55 | Initial release.
56 |
--------------------------------------------------------------------------------
/default.py:
--------------------------------------------------------------------------------
1 | #/*
2 | # *
3 | # * OpenVPN for Kodi.
4 | # *
5 | # * Copyright (C) 2015 Brian Hornsby
6 | # *
7 | # * This program is free software: you can redistribute it and/or modify
8 | # * it under the terms of the GNU General Public License as published by
9 | # * the Free Software Foundation, either version 3 of the License, or
10 | # * (at your option) any later version.
11 | # *
12 | # * This program is distributed in the hope that it will be useful,
13 | # * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # * GNU General Public License for more details.
16 | # *
17 | # * You should have received a copy of the GNU General Public License
18 | # * along with this program. If not, see .
19 | # *
20 | # */
21 |
22 | import os
23 | import shutil
24 | import sys
25 | import subprocess
26 | import threading
27 | import time
28 | import urllib2
29 | import xbmc
30 | from BeautifulSoup import BeautifulSoup
31 |
32 | import resources.lib.openvpn as vpn
33 | import resources.lib.kodisettings as settings
34 | import resources.lib.kodiutils as utils
35 |
36 | # Set some global values.
37 | _addonid = 'script.openvpn'
38 |
39 | # Initialise settings.
40 | _settings = settings.KodiSettings(_addonid, sys.argv)
41 |
42 | # Get addon information.
43 | _addonname = _settings.get_name()
44 | _version = _settings.get_version()
45 |
46 |
47 | def log_debug(msg):
48 | if _settings['debug'] == 'true':
49 | print 'script.openvpn: DEBUG: %s' % msg
50 |
51 |
52 | def log_error(msg):
53 | print 'script.openvpn: ERROR: %s' % msg
54 |
55 | log_debug('Addon Id: [%s]' % (_addonid))
56 | log_debug('Addon Name: [%s]' % (_addonname))
57 | log_debug('Version: [%s]' % (_version))
58 |
59 | # 'enum' of connection states
60 | (disconnected, failed, connecting, disconnecting, connected) = range(5)
61 | _state = disconnected
62 |
63 | # Get addon settings values.
64 | _openvpn = _settings['openvpn']
65 | _userdata = _settings.get_datapath()
66 | _ip = _settings['ip']
67 | _port = int(_settings['port'])
68 | _args = _settings['args']
69 | _sudo = (_settings['sudo'] == 'true')
70 | if _sudo:
71 | _sudopwdrequired = (_settings['sudopwdrequired'] == 'true')
72 | else:
73 | _sudopwdrequired = False
74 |
75 | log_debug('OpenVPN: [%s]' % _openvpn)
76 | log_debug('Userdata: [%s]' % _userdata)
77 | log_debug('OpenVPN Management Interface IP: [%s]' % _ip)
78 | log_debug('OpenVPN Management Interface Port: [%d]' % _port)
79 | log_debug('OpenVPN Additional Arguments: [%s]' % _args)
80 | log_debug('Sudo: [%s]' % _sudo)
81 | if _sudo:
82 | log_debug('Sudo Password Required: [%s]' % _sudopwdrequired)
83 |
84 |
85 | def get_geolocation():
86 | try:
87 | url = 'http://api.ipinfodb.com/v3/ip-city/?key=24e822dc48a930d92b04413d1d551ae86e09943a829f971c1c83b7727a16947f&format=xml'
88 | req = urllib2.Request(url)
89 | f = urllib2.urlopen(req)
90 | result = f.read()
91 | f.close()
92 | return BeautifulSoup(result)
93 | except:
94 | return None
95 |
96 |
97 | def display_location():
98 | geolocation = get_geolocation()
99 | if geolocation is not None:
100 | image = _settings.get_path('%s%s%s' % (
101 | 'resources/images/', geolocation.response.countrycode.string.lower(), '.png'))
102 | utils.notification(_addonname, _settings.get_string(4000) % (
103 | geolocation.response.ipaddress.string, geolocation.response.countryname.string.title()), image=image)
104 |
105 |
106 | def display_notification(text, subtext=False):
107 | image = _settings.get_path('icon.png')
108 | if subtext:
109 | text = text + ': ' + subtext
110 | utils.notification(_addonname, text, image=image)
111 |
112 |
113 | def disconnect_openvpn():
114 | log_debug('Disconnecting OpenVPN')
115 | global _state
116 | try:
117 | _state = disconnecting
118 | response = vpn.is_running(_ip, _port)
119 | if response[0]:
120 | vpn.disconnect(_ip, _port)
121 | if response[1] is not None:
122 | display_notification(_settings.get_string(4001) % os.path.splitext(os.path.basename(response[1]))[0])
123 | _state = disconnected
124 | log_debug('Disconnect OpenVPN successful')
125 | except vpn.OpenVPNError as exception:
126 | utils.ok(_settings.get_string(
127 | 3002), _settings.get_string(3011), exception.string)
128 | _state = failed
129 |
130 |
131 | def connect_openvpn(config, restart=False, sudopassword=None):
132 | log_debug('Connecting OpenVPN configuration: [%s]' % config)
133 | global _state
134 |
135 | if _sudo and _sudopwdrequired and sudopassword is None:
136 | sudopassword = utils.keyboard(
137 | heading=_settings.get_string(3012), hidden=True)
138 | openvpn = vpn.OpenVPN(_openvpn, _settings.get_datapath(
139 | config), ip=_ip, port=_port, args=_args, sudo=_sudo, sudopwd=sudopassword, debug=(_settings['debug'] == 'true'))
140 | try:
141 | if restart:
142 | openvpn.disconnect()
143 | _state = disconnected
144 | openvpn.connect()
145 | display_notification(_settings.get_string(4002) % os.path.splitext(os.path.basename(config))[0])
146 | _state = connected
147 | except vpn.OpenVPNError as exception:
148 | if exception.errno == 1:
149 | _state = connected
150 | if utils.yesno(_settings.get_string(3002), _settings.get_string(3009), _settings.get_string(3010)):
151 | log_debug('User has decided to restart OpenVPN')
152 | connect_openvpn(config, True, sudopassword)
153 | else:
154 | log_debug('User has decided not to restart OpenVPN')
155 | else:
156 | utils.ok(_settings.get_string(
157 | 3002), _settings.get_string(3011), exception.string)
158 | _state = failed
159 |
160 |
161 | def select_ovpn():
162 | global _state
163 | ovpnfiles = []
164 | for path in os.listdir(_userdata):
165 | if os.path.splitext(path)[1] == '.ovpn':
166 | log_debug('Found configuration: [%s]' % path)
167 | ovpnfiles.append(path)
168 |
169 | if len(ovpnfiles) == 0:
170 | return None
171 | else:
172 | ovpnfiles.sort()
173 |
174 | response = vpn.is_running(_ip, _port)
175 | log_debug('Response from is_running: [%s] [%s] [%s]' % (
176 | response[0], response[1], response[2]))
177 | if response[0]:
178 | _state = connected
179 | ovpnfiles.append(_settings.get_string(3014))
180 |
181 | configs = []
182 | for ovpn in ovpnfiles:
183 | config = os.path.splitext(ovpn)[0]
184 | if response[1] is not None and response[2] is not None and config == os.path.splitext(os.path.basename(response[1]))[0]:
185 | config = '%s - %s' % (config, response[2])
186 | configs.append(config)
187 | idx = utils.select(_settings.get_string(3013), configs)
188 | if idx >= 0:
189 | log_debug('Select: [%s]' % ovpnfiles[idx])
190 | return ovpnfiles[idx]
191 | else:
192 | return ''
193 |
194 |
195 | def delete_ovpn():
196 | name = select_ovpn()
197 | if name is not None and len(name) > 0:
198 | ovpn = _settings.get_datapath(name)
199 | log_debug('Delete: [%s]' % ovpn)
200 | if os.path.exists(ovpn):
201 | if not utils.yesno(_settings.get_string(3002), _settings.get_string(3006)):
202 | utils.ok(_settings.get_string(
203 | 3002), _settings.get_string(3007))
204 | else:
205 | log_debug('Deleting: [%s]' % (ovpn))
206 | os.remove(ovpn)
207 | elif name is None:
208 | utils.ok(_settings.get_string(3002), _settings.get_string(3008))
209 |
210 |
211 | def import_ovpn():
212 | path = utils.browse_files(_settings.get_string(3000), mask='.ovpn|.conf')
213 | if path and os.path.exists(path) and os.path.isfile(path):
214 | log_debug('Import: [%s]' % path)
215 | name = utils.keyboard(heading=_settings.get_string(3001))
216 | if name and len(name) > 0:
217 | ovpn = _settings.get_datapath('%s.ovpn' % name)
218 | if os.path.exists(ovpn) and not utils.yesno(_settings.get_string(3002), _settings.get_string(3003)):
219 | utils.ok(_settings.get_string(
220 | 3002), _settings.get_string(3004))
221 | else:
222 | log_debug('Copying [%s] to [%s]' % (path, ovpn))
223 | shutil.copyfile(path, ovpn)
224 | else:
225 | utils.ok(_settings.get_string(3002), _settings.get_string(3005))
226 |
227 |
228 | if (__name__ == '__main__'):
229 | if _settings.get_argc() != 1:
230 | if _settings.get_argv(1) == 'import':
231 | import_ovpn()
232 | elif _settings.get_argv(1) == 'delete':
233 | delete_ovpn()
234 | elif _settings.get_argv(1) == 'location':
235 | display_location()
236 | elif _settings.get_argv(1) == 'disconnect':
237 | disconnect_openvpn()
238 | else:
239 | found = False
240 | ovpnpath = None
241 | for path in os.listdir(_userdata):
242 | if os.path.splitext(path)[1] == '.ovpn' and os.path.splitext(path)[0] == _settings.get_argv(1):
243 | ovpnpath = path
244 | found = True
245 | break
246 | if found:
247 | connect_openvpn(ovpnpath)
248 | else:
249 | log_error(
250 | 'Unknown OpenVPN configuration: [%s]' % _settings.get_argv(1))
251 | else:
252 | if not os.path.exists(_userdata):
253 | log_debug('Creating directory: [%s]' % _userdata)
254 | os.mkdir(_userdata)
255 |
256 | ovpn = select_ovpn()
257 | if ovpn is None:
258 | import_ovpn()
259 | elif len(ovpn) > 0 and ovpn == _settings.get_string(3014) and _state == connected:
260 | disconnect_openvpn()
261 | elif len(ovpn) > 0:
262 | connect_openvpn(ovpn)
263 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/icon.png
--------------------------------------------------------------------------------
/resources/__init__.py:
--------------------------------------------------------------------------------
1 | # Dummy
2 |
--------------------------------------------------------------------------------
/resources/images/ad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ad.png
--------------------------------------------------------------------------------
/resources/images/ae.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ae.png
--------------------------------------------------------------------------------
/resources/images/af.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/af.png
--------------------------------------------------------------------------------
/resources/images/ag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ag.png
--------------------------------------------------------------------------------
/resources/images/ai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ai.png
--------------------------------------------------------------------------------
/resources/images/al.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/al.png
--------------------------------------------------------------------------------
/resources/images/am.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/am.png
--------------------------------------------------------------------------------
/resources/images/ao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ao.png
--------------------------------------------------------------------------------
/resources/images/aq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/aq.png
--------------------------------------------------------------------------------
/resources/images/ar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ar.png
--------------------------------------------------------------------------------
/resources/images/as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/as.png
--------------------------------------------------------------------------------
/resources/images/at.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/at.png
--------------------------------------------------------------------------------
/resources/images/au.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/au.png
--------------------------------------------------------------------------------
/resources/images/aw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/aw.png
--------------------------------------------------------------------------------
/resources/images/ax.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ax.png
--------------------------------------------------------------------------------
/resources/images/az.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/az.png
--------------------------------------------------------------------------------
/resources/images/ba.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ba.png
--------------------------------------------------------------------------------
/resources/images/bb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bb.png
--------------------------------------------------------------------------------
/resources/images/bd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bd.png
--------------------------------------------------------------------------------
/resources/images/be.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/be.png
--------------------------------------------------------------------------------
/resources/images/bf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bf.png
--------------------------------------------------------------------------------
/resources/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bg.png
--------------------------------------------------------------------------------
/resources/images/bh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bh.png
--------------------------------------------------------------------------------
/resources/images/bi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bi.png
--------------------------------------------------------------------------------
/resources/images/bj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bj.png
--------------------------------------------------------------------------------
/resources/images/bl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bl.png
--------------------------------------------------------------------------------
/resources/images/bm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bm.png
--------------------------------------------------------------------------------
/resources/images/bn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bn.png
--------------------------------------------------------------------------------
/resources/images/bo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bo.png
--------------------------------------------------------------------------------
/resources/images/bq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bq.png
--------------------------------------------------------------------------------
/resources/images/br.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/br.png
--------------------------------------------------------------------------------
/resources/images/bs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bs.png
--------------------------------------------------------------------------------
/resources/images/bt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bt.png
--------------------------------------------------------------------------------
/resources/images/bv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bv.png
--------------------------------------------------------------------------------
/resources/images/bw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bw.png
--------------------------------------------------------------------------------
/resources/images/by.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/by.png
--------------------------------------------------------------------------------
/resources/images/bz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/bz.png
--------------------------------------------------------------------------------
/resources/images/ca.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ca.png
--------------------------------------------------------------------------------
/resources/images/cc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cc.png
--------------------------------------------------------------------------------
/resources/images/cd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cd.png
--------------------------------------------------------------------------------
/resources/images/cf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cf.png
--------------------------------------------------------------------------------
/resources/images/cg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cg.png
--------------------------------------------------------------------------------
/resources/images/ch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ch.png
--------------------------------------------------------------------------------
/resources/images/ci.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ci.png
--------------------------------------------------------------------------------
/resources/images/ck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ck.png
--------------------------------------------------------------------------------
/resources/images/cl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cl.png
--------------------------------------------------------------------------------
/resources/images/cm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cm.png
--------------------------------------------------------------------------------
/resources/images/cn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cn.png
--------------------------------------------------------------------------------
/resources/images/co.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/co.png
--------------------------------------------------------------------------------
/resources/images/cr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cr.png
--------------------------------------------------------------------------------
/resources/images/cu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cu.png
--------------------------------------------------------------------------------
/resources/images/cv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cv.png
--------------------------------------------------------------------------------
/resources/images/cw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cw.png
--------------------------------------------------------------------------------
/resources/images/cx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cx.png
--------------------------------------------------------------------------------
/resources/images/cy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cy.png
--------------------------------------------------------------------------------
/resources/images/cz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/cz.png
--------------------------------------------------------------------------------
/resources/images/de.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/de.png
--------------------------------------------------------------------------------
/resources/images/dj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/dj.png
--------------------------------------------------------------------------------
/resources/images/dk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/dk.png
--------------------------------------------------------------------------------
/resources/images/dm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/dm.png
--------------------------------------------------------------------------------
/resources/images/do.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/do.png
--------------------------------------------------------------------------------
/resources/images/dz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/dz.png
--------------------------------------------------------------------------------
/resources/images/ec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ec.png
--------------------------------------------------------------------------------
/resources/images/ee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ee.png
--------------------------------------------------------------------------------
/resources/images/eg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/eg.png
--------------------------------------------------------------------------------
/resources/images/eh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/eh.png
--------------------------------------------------------------------------------
/resources/images/er.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/er.png
--------------------------------------------------------------------------------
/resources/images/es.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/es.png
--------------------------------------------------------------------------------
/resources/images/et.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/et.png
--------------------------------------------------------------------------------
/resources/images/fi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fi.png
--------------------------------------------------------------------------------
/resources/images/fj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fj.png
--------------------------------------------------------------------------------
/resources/images/fk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fk.png
--------------------------------------------------------------------------------
/resources/images/fm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fm.png
--------------------------------------------------------------------------------
/resources/images/fo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fo.png
--------------------------------------------------------------------------------
/resources/images/fr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/fr.png
--------------------------------------------------------------------------------
/resources/images/ga.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ga.png
--------------------------------------------------------------------------------
/resources/images/gb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gb.png
--------------------------------------------------------------------------------
/resources/images/gd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gd.png
--------------------------------------------------------------------------------
/resources/images/ge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ge.png
--------------------------------------------------------------------------------
/resources/images/gf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gf.png
--------------------------------------------------------------------------------
/resources/images/gg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gg.png
--------------------------------------------------------------------------------
/resources/images/gh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gh.png
--------------------------------------------------------------------------------
/resources/images/gi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gi.png
--------------------------------------------------------------------------------
/resources/images/gl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gl.png
--------------------------------------------------------------------------------
/resources/images/gm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gm.png
--------------------------------------------------------------------------------
/resources/images/gn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gn.png
--------------------------------------------------------------------------------
/resources/images/gp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gp.png
--------------------------------------------------------------------------------
/resources/images/gq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gq.png
--------------------------------------------------------------------------------
/resources/images/gr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gr.png
--------------------------------------------------------------------------------
/resources/images/gs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gs.png
--------------------------------------------------------------------------------
/resources/images/gt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gt.png
--------------------------------------------------------------------------------
/resources/images/gu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gu.png
--------------------------------------------------------------------------------
/resources/images/gw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gw.png
--------------------------------------------------------------------------------
/resources/images/gy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/gy.png
--------------------------------------------------------------------------------
/resources/images/hk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/hk.png
--------------------------------------------------------------------------------
/resources/images/hm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/hm.png
--------------------------------------------------------------------------------
/resources/images/hn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/hn.png
--------------------------------------------------------------------------------
/resources/images/hr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/hr.png
--------------------------------------------------------------------------------
/resources/images/ht.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ht.png
--------------------------------------------------------------------------------
/resources/images/hu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/hu.png
--------------------------------------------------------------------------------
/resources/images/id.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/id.png
--------------------------------------------------------------------------------
/resources/images/ie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ie.png
--------------------------------------------------------------------------------
/resources/images/il.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/il.png
--------------------------------------------------------------------------------
/resources/images/im.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/im.png
--------------------------------------------------------------------------------
/resources/images/in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/in.png
--------------------------------------------------------------------------------
/resources/images/io.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/io.png
--------------------------------------------------------------------------------
/resources/images/iq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/iq.png
--------------------------------------------------------------------------------
/resources/images/ir.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ir.png
--------------------------------------------------------------------------------
/resources/images/is.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/is.png
--------------------------------------------------------------------------------
/resources/images/it.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/it.png
--------------------------------------------------------------------------------
/resources/images/je.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/je.png
--------------------------------------------------------------------------------
/resources/images/jm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/jm.png
--------------------------------------------------------------------------------
/resources/images/jo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/jo.png
--------------------------------------------------------------------------------
/resources/images/jp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/jp.png
--------------------------------------------------------------------------------
/resources/images/ke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ke.png
--------------------------------------------------------------------------------
/resources/images/kg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kg.png
--------------------------------------------------------------------------------
/resources/images/kh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kh.png
--------------------------------------------------------------------------------
/resources/images/ki.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ki.png
--------------------------------------------------------------------------------
/resources/images/km.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/km.png
--------------------------------------------------------------------------------
/resources/images/kn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kn.png
--------------------------------------------------------------------------------
/resources/images/kp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kp.png
--------------------------------------------------------------------------------
/resources/images/kr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kr.png
--------------------------------------------------------------------------------
/resources/images/kw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kw.png
--------------------------------------------------------------------------------
/resources/images/ky.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ky.png
--------------------------------------------------------------------------------
/resources/images/kz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/kz.png
--------------------------------------------------------------------------------
/resources/images/la.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/la.png
--------------------------------------------------------------------------------
/resources/images/lb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lb.png
--------------------------------------------------------------------------------
/resources/images/lc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lc.png
--------------------------------------------------------------------------------
/resources/images/li.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/li.png
--------------------------------------------------------------------------------
/resources/images/lk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lk.png
--------------------------------------------------------------------------------
/resources/images/lr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lr.png
--------------------------------------------------------------------------------
/resources/images/ls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ls.png
--------------------------------------------------------------------------------
/resources/images/lt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lt.png
--------------------------------------------------------------------------------
/resources/images/lu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lu.png
--------------------------------------------------------------------------------
/resources/images/lv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/lv.png
--------------------------------------------------------------------------------
/resources/images/ly.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ly.png
--------------------------------------------------------------------------------
/resources/images/ma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ma.png
--------------------------------------------------------------------------------
/resources/images/mc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mc.png
--------------------------------------------------------------------------------
/resources/images/md.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/md.png
--------------------------------------------------------------------------------
/resources/images/me.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/me.png
--------------------------------------------------------------------------------
/resources/images/mf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mf.png
--------------------------------------------------------------------------------
/resources/images/mg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mg.png
--------------------------------------------------------------------------------
/resources/images/mh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mh.png
--------------------------------------------------------------------------------
/resources/images/mk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mk.png
--------------------------------------------------------------------------------
/resources/images/ml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ml.png
--------------------------------------------------------------------------------
/resources/images/mm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mm.png
--------------------------------------------------------------------------------
/resources/images/mn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mn.png
--------------------------------------------------------------------------------
/resources/images/mo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mo.png
--------------------------------------------------------------------------------
/resources/images/mp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mp.png
--------------------------------------------------------------------------------
/resources/images/mq.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mq.png
--------------------------------------------------------------------------------
/resources/images/mr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mr.png
--------------------------------------------------------------------------------
/resources/images/ms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ms.png
--------------------------------------------------------------------------------
/resources/images/mt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mt.png
--------------------------------------------------------------------------------
/resources/images/mu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mu.png
--------------------------------------------------------------------------------
/resources/images/mv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mv.png
--------------------------------------------------------------------------------
/resources/images/mw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mw.png
--------------------------------------------------------------------------------
/resources/images/mx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mx.png
--------------------------------------------------------------------------------
/resources/images/my.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/my.png
--------------------------------------------------------------------------------
/resources/images/mz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/mz.png
--------------------------------------------------------------------------------
/resources/images/na.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/na.png
--------------------------------------------------------------------------------
/resources/images/nc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nc.png
--------------------------------------------------------------------------------
/resources/images/ne.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ne.png
--------------------------------------------------------------------------------
/resources/images/nf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nf.png
--------------------------------------------------------------------------------
/resources/images/ng.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ng.png
--------------------------------------------------------------------------------
/resources/images/ni.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ni.png
--------------------------------------------------------------------------------
/resources/images/nl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nl.png
--------------------------------------------------------------------------------
/resources/images/no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/no.png
--------------------------------------------------------------------------------
/resources/images/np.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/np.png
--------------------------------------------------------------------------------
/resources/images/nr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nr.png
--------------------------------------------------------------------------------
/resources/images/nu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nu.png
--------------------------------------------------------------------------------
/resources/images/nz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/nz.png
--------------------------------------------------------------------------------
/resources/images/om.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/om.png
--------------------------------------------------------------------------------
/resources/images/pa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pa.png
--------------------------------------------------------------------------------
/resources/images/pe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pe.png
--------------------------------------------------------------------------------
/resources/images/pf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pf.png
--------------------------------------------------------------------------------
/resources/images/pg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pg.png
--------------------------------------------------------------------------------
/resources/images/ph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ph.png
--------------------------------------------------------------------------------
/resources/images/pk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pk.png
--------------------------------------------------------------------------------
/resources/images/pl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pl.png
--------------------------------------------------------------------------------
/resources/images/pm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pm.png
--------------------------------------------------------------------------------
/resources/images/pn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pn.png
--------------------------------------------------------------------------------
/resources/images/pr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pr.png
--------------------------------------------------------------------------------
/resources/images/ps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ps.png
--------------------------------------------------------------------------------
/resources/images/pt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pt.png
--------------------------------------------------------------------------------
/resources/images/pw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/pw.png
--------------------------------------------------------------------------------
/resources/images/py.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/py.png
--------------------------------------------------------------------------------
/resources/images/qa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/qa.png
--------------------------------------------------------------------------------
/resources/images/re.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/re.png
--------------------------------------------------------------------------------
/resources/images/ro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ro.png
--------------------------------------------------------------------------------
/resources/images/rs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/rs.png
--------------------------------------------------------------------------------
/resources/images/ru.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ru.png
--------------------------------------------------------------------------------
/resources/images/rw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/rw.png
--------------------------------------------------------------------------------
/resources/images/sa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sa.png
--------------------------------------------------------------------------------
/resources/images/sb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sb.png
--------------------------------------------------------------------------------
/resources/images/sc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sc.png
--------------------------------------------------------------------------------
/resources/images/sd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sd.png
--------------------------------------------------------------------------------
/resources/images/se.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/se.png
--------------------------------------------------------------------------------
/resources/images/sg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sg.png
--------------------------------------------------------------------------------
/resources/images/sh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sh.png
--------------------------------------------------------------------------------
/resources/images/si.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/si.png
--------------------------------------------------------------------------------
/resources/images/sj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sj.png
--------------------------------------------------------------------------------
/resources/images/sk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sk.png
--------------------------------------------------------------------------------
/resources/images/sl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sl.png
--------------------------------------------------------------------------------
/resources/images/sm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sm.png
--------------------------------------------------------------------------------
/resources/images/sn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sn.png
--------------------------------------------------------------------------------
/resources/images/so.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/so.png
--------------------------------------------------------------------------------
/resources/images/sr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sr.png
--------------------------------------------------------------------------------
/resources/images/ss.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ss.png
--------------------------------------------------------------------------------
/resources/images/st.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/st.png
--------------------------------------------------------------------------------
/resources/images/sv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sv.png
--------------------------------------------------------------------------------
/resources/images/sx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sx.png
--------------------------------------------------------------------------------
/resources/images/sy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sy.png
--------------------------------------------------------------------------------
/resources/images/sz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/sz.png
--------------------------------------------------------------------------------
/resources/images/tc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tc.png
--------------------------------------------------------------------------------
/resources/images/td.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/td.png
--------------------------------------------------------------------------------
/resources/images/tf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tf.png
--------------------------------------------------------------------------------
/resources/images/tg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tg.png
--------------------------------------------------------------------------------
/resources/images/th.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/th.png
--------------------------------------------------------------------------------
/resources/images/tj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tj.png
--------------------------------------------------------------------------------
/resources/images/tk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tk.png
--------------------------------------------------------------------------------
/resources/images/tl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tl.png
--------------------------------------------------------------------------------
/resources/images/tm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tm.png
--------------------------------------------------------------------------------
/resources/images/tn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tn.png
--------------------------------------------------------------------------------
/resources/images/to.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/to.png
--------------------------------------------------------------------------------
/resources/images/tr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tr.png
--------------------------------------------------------------------------------
/resources/images/tt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tt.png
--------------------------------------------------------------------------------
/resources/images/tv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tv.png
--------------------------------------------------------------------------------
/resources/images/tw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tw.png
--------------------------------------------------------------------------------
/resources/images/tz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/tz.png
--------------------------------------------------------------------------------
/resources/images/ua.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ua.png
--------------------------------------------------------------------------------
/resources/images/ug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ug.png
--------------------------------------------------------------------------------
/resources/images/um.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/um.png
--------------------------------------------------------------------------------
/resources/images/us.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/us.png
--------------------------------------------------------------------------------
/resources/images/uy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/uy.png
--------------------------------------------------------------------------------
/resources/images/uz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/uz.png
--------------------------------------------------------------------------------
/resources/images/va.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/va.png
--------------------------------------------------------------------------------
/resources/images/vc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/vc.png
--------------------------------------------------------------------------------
/resources/images/ve.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ve.png
--------------------------------------------------------------------------------
/resources/images/vg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/vg.png
--------------------------------------------------------------------------------
/resources/images/vi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/vi.png
--------------------------------------------------------------------------------
/resources/images/vn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/vn.png
--------------------------------------------------------------------------------
/resources/images/vu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/vu.png
--------------------------------------------------------------------------------
/resources/images/wf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/wf.png
--------------------------------------------------------------------------------
/resources/images/ws.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ws.png
--------------------------------------------------------------------------------
/resources/images/ye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/ye.png
--------------------------------------------------------------------------------
/resources/images/yt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/yt.png
--------------------------------------------------------------------------------
/resources/images/za.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/za.png
--------------------------------------------------------------------------------
/resources/images/zm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/zm.png
--------------------------------------------------------------------------------
/resources/images/zw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/zw.png
--------------------------------------------------------------------------------
/resources/images/zz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brianhornsby/script.openvpn/62c33e73a5a42a8f0e2f185904a0f5a89986079d/resources/images/zz.png
--------------------------------------------------------------------------------
/resources/language/english/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | OpenVPN
8 | Import OpenVPN Configuration File
9 | Delete OpenVPN Configuration File
10 | OpenVPN Settings
11 | Management IP Address
12 | Management Port
13 | Additional Arguments
14 | OpenVPN Configuration
15 | Script
16 | Use sudo when running OpenVPN
17 | Password is required
18 | Advanced
19 | Debug
20 |
21 |
22 | Import OpenVPN configuration file
23 | Enter a name for OpenVPN configuration
24 | OpenVPN
25 | An OpenVPN configuration already exists with that name. Overwrite?
26 | Import cancelled.
27 | Import failed. You must specify a name for the OpenVPN configuration.
28 | Are you sure you want to delete this OpenVPN configuration?
29 | Delete cancelled.
30 | No OpenVPN configurations exist to delete.
31 | An existing OpenVPN instance appears to be running.
32 | Disconnect it?
33 | An error has occurred whilst trying to connect OpenVPN
34 | Enter your sudo password
35 | Select OpenVPN configuration to run
36 | Disconnect OpenVPN
37 |
38 |
39 | IP: %s; Country: %s
40 | Stopped OpenVPN connection: %s
41 | Started OpenVPN connection: %s
42 |
43 |
44 |
--------------------------------------------------------------------------------
/resources/lib/__init__.py:
--------------------------------------------------------------------------------
1 | # Dummy
2 |
--------------------------------------------------------------------------------
/resources/lib/kodisettings.py:
--------------------------------------------------------------------------------
1 | #/*
2 | # *
3 | # * OpenVPN for Kodi.
4 | # *
5 | # * Copyright (C) 2015 Brian Hornsby
6 | # *
7 | # * This program is free software: you can redistribute it and/or modify
8 | # * it under the terms of the GNU General Public License as published by
9 | # * the Free Software Foundation, either version 3 of the License, or
10 | # * (at your option) any later version.
11 | # *
12 | # * This program is distributed in the hope that it will be useful,
13 | # * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # * GNU General Public License for more details.
16 | # *
17 | # * You should have received a copy of the GNU General Public License
18 | # * along with this program. If not, see .
19 | # *
20 | # */
21 |
22 | import xbmcaddon
23 | import xbmc
24 |
25 |
26 | class KodiSettings:
27 | def __init__(self, addonid, argv):
28 | self.__addon__ = xbmcaddon.Addon(id=addonid)
29 | self.__argv__ = argv
30 | self.__id__ = self.__addon__.getAddonInfo('id')
31 | self.__datapath__ = 'special://profile/addon_data/%s' % (self.__id__)
32 | self.__name__ = self.__addon__.getAddonInfo('name')
33 | self.__path__ = self.__addon__.getAddonInfo('path')
34 | self.__version__ = self.__addon__.getAddonInfo('version')
35 |
36 | def __getitem__(self, key):
37 | value = self.__addon__.getSetting(key)
38 | if value.isdigit():
39 | return int(value)
40 | else:
41 | return value
42 |
43 | def get_string(self, id):
44 | return self.__addon__.getLocalizedString(id)
45 |
46 | def get_argv(self, idx):
47 | return self.__argv__[idx]
48 |
49 | def get_argc(self):
50 | return len(self.__argv__)
51 |
52 | def get_datapath(self, path=''):
53 | return xbmc.translatePath('%s/%s' % (self.__datapath__, path))
54 |
55 | def get_name(self):
56 | return self.__name__
57 |
58 | def get_path(self, path=''):
59 | return xbmc.translatePath('%s/%s' % (self.__path__, path))
60 |
61 | def get_version(self):
62 | return self.__version__
63 |
64 | def open(self):
65 | self.__addon__.openSettings()
66 |
--------------------------------------------------------------------------------
/resources/lib/kodiutils.py:
--------------------------------------------------------------------------------
1 | #/*
2 | # *
3 | # * OpenVPN for Kodi.
4 | # *
5 | # * Copyright (C) 2015 Brian Hornsby
6 | # *
7 | # * This program is free software: you can redistribute it and/or modify
8 | # * it under the terms of the GNU General Public License as published by
9 | # * the Free Software Foundation, either version 3 of the License, or
10 | # * (at your option) any later version.
11 | # *
12 | # * This program is distributed in the hope that it will be useful,
13 | # * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # * GNU General Public License for more details.
16 | # *
17 | # * You should have received a copy of the GNU General Public License
18 | # * along with this program. If not, see .
19 | # *
20 | # */
21 |
22 | import xbmc
23 | import xbmcgui
24 | import unicodedata
25 | import urllib
26 |
27 |
28 | def normalize_unicode(text):
29 | if text and not isinstance(text, unicode):
30 | return text
31 | if not text or len(text) == 0:
32 | return ''
33 | return unicodedata.normalize('NFKD', text).encode('ascii', 'ignore')
34 |
35 |
36 | def check_value(value):
37 | if value is None:
38 | return ''
39 | return normalize_unicode(value)
40 |
41 |
42 | def get_value(tuple, key):
43 | if key not in tuple:
44 | return ''
45 | return check_value(tuple[key])
46 |
47 |
48 | def check_int(value):
49 | if value is None:
50 | return 0
51 | return value
52 |
53 |
54 | def get_int(tuple, key):
55 | if key not in tuple:
56 | return 0
57 | return int(check_value(tuple[key]))
58 |
59 |
60 | def add_params(root, params):
61 | return '%s?%s' % (root, urllib.urlencode(params))
62 |
63 |
64 | def browse(type, heading, shares='files', mask='', enablemultiple=False):
65 | dialog = xbmcgui.Dialog()
66 | return dialog.browse(type, heading, shares, mask, enablemultiple)
67 |
68 |
69 | def browse_files(heading, shares='files', mask='', enablemultiple=False):
70 | return browse(1, heading, shares, mask, enablemultiple)
71 |
72 |
73 | def keyboard(default='', heading='', hidden=False):
74 | kb = xbmc.Keyboard(default, heading, hidden)
75 | kb.doModal()
76 | if (kb.isConfirmed() and len(kb.getText()) > 0):
77 | return kb.getText()
78 | return None
79 |
80 |
81 | def notification(header, message, time=5000, image=''):
82 | command = 'Notification(%s, %s, %s, %s)' % (header, message, time, image)
83 | xbmc.executebuiltin(command)
84 |
85 |
86 | def ok(heading, line1, line2='', line3=''):
87 | dialog = xbmcgui.Dialog()
88 | dialog.ok(heading, line1, line2, line3)
89 |
90 |
91 | def select(heading, list):
92 | dialog = xbmcgui.Dialog()
93 | return dialog.select(heading, list)
94 |
95 |
96 | def yesno(heading, line1, line2='', line3=''):
97 | dialog = xbmcgui.Dialog()
98 | return dialog.yesno(heading, line1, line2, line3) == 1
99 |
100 |
101 | def get_params(text):
102 | param = []
103 | paramstring = text
104 | if (len(paramstring) >= 2):
105 | params = text
106 | cleanedparams = params.replace('?', '')
107 | if (params[len(params) - 1] == '/'):
108 | params = params[0:len(params) - 2]
109 | pairsofparams = cleanedparams.split('&')
110 | param = {}
111 | for i in range(len(pairsofparams)):
112 | splitparams = {}
113 | splitparams = pairsofparams[i].split('=')
114 | if len(splitparams) == 2:
115 | param[splitparams[0]] = urllib.unquote_plus(splitparams[1])
116 | return param
117 |
--------------------------------------------------------------------------------
/resources/lib/openvpn.py:
--------------------------------------------------------------------------------
1 | #/*
2 | # *
3 | # * OpenVPN for Kodi.
4 | # *
5 | # * Copyright (C) 2015 Brian Hornsby
6 | # *
7 | # * This program is free software: you can redistribute it and/or modify
8 | # * it under the terms of the GNU General Public License as published by
9 | # * the Free Software Foundation, either version 3 of the License, or
10 | # * (at your option) any later version.
11 | # *
12 | # * This program is distributed in the hope that it will be useful,
13 | # * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # * GNU General Public License for more details.
16 | # *
17 | # * You should have received a copy of the GNU General Public License
18 | # * along with this program. If not, see .
19 | # *
20 | # */
21 |
22 |
23 | import os
24 | import sys
25 | import subprocess
26 | import time
27 | import socket
28 |
29 |
30 | class OpenVPNManagementInterface:
31 |
32 | def __init__(self, ip, port, openvpn=None):
33 | self.openvpn = openvpn
34 | self.ip = ip
35 | self.port = port
36 | #self.openvpn._log_debug('OpenVPNManagementInterface: IP: [%s]' % ip)
37 | #self.openvpn._log_debug(
38 | # 'OpenVPNManagementInterface: Port: [%s]' % port)
39 | self.buf = ''
40 | self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
41 |
42 | def connect(self):
43 | self.sock.connect((self.ip, self.port))
44 |
45 | def disconnect(self):
46 | self.sock.close()
47 |
48 | def send(self, msg):
49 | #self.openvpn._log_debug('Sending: [%s]' % msg)
50 | sent = self.sock.send(msg)
51 | #self.openvpn._log_debug('Sent: [%d]' % sent)
52 |
53 | def receive(self):
54 | buf = ''
55 | data = ''
56 | while data != '\n':
57 | data = self.sock.recv(1)
58 | buf += data
59 | if len(buf) > 0:
60 | buf += '\n'
61 | return buf
62 |
63 |
64 | def is_running(ip, port):
65 | interface = OpenVPNManagementInterface(ip, port)
66 | config = None
67 | state = None
68 | try:
69 | interface.connect()
70 | interface.send('pid\n')
71 | interface.send('state\n')
72 | if interface.receive().startswith('>INFO:'):
73 | data = interface.receive()
74 | if data.startswith('SUCCESS: pid='):
75 | pid = int(data.split('=')[1])
76 | cmdline = 'ps -fp %d' % pid
77 | ps = subprocess.Popen(cmdline, shell=True, stdout=subprocess.PIPE)
78 | cmdline = ps.stdout.read()
79 | ps.stdout.close()
80 | output = cmdline.split('--config')
81 | if len(output) > 1:
82 | config = output[1].lstrip().split('--')[0].rstrip()
83 | else:
84 | cmdline = 'ps | grep -w %d | grep -vw grep' % pid
85 | ps = subprocess.Popen(cmdline, shell=True, stdout=subprocess.PIPE)
86 | cmdline = ps.stdout.read()
87 | ps.stdout.close()
88 | output = cmdline.split('--config')
89 | if len(output) > 1:
90 | config = output[1].lstrip().split('--')[0].rstrip()
91 |
92 | data = interface.receive().split(',')
93 | if len(data) > 1:
94 | state = data[1]
95 | except socket.error as exception:
96 | return False, None, None
97 | return True, config, state
98 |
99 |
100 | def disconnect(ip, port):
101 | interface = OpenVPNManagementInterface(ip, port)
102 | try:
103 | interface.connect()
104 | interface.send('signal SIGTERM\n')
105 | interface.disconnect()
106 | except socket.error as exception:
107 | raise OpenVPNError(3, 'Unable to disconnect OpenVPN')
108 |
109 |
110 | class OpenVPNError(Exception):
111 |
112 | def __init__(self, errno, string):
113 | self.errno = errno
114 | self.string = string
115 |
116 | def __str__(self):
117 | return '[%d]: %s' % (self.errno, self.string)
118 |
119 |
120 | class OpenVPN:
121 |
122 | def __init__(self, openvpn, ovpnconfig, ip='127.0.0.1', port=1337, sudo=False, sudopwd=None, args=None, timeout=1, debug=False):
123 | self.openvpn = openvpn
124 | self.ovpnconfig = ovpnconfig
125 | self.ip = ip
126 | self.port = int(port)
127 | self.args = args
128 | self.timeout = timeout
129 | self.sudo = sudo
130 | self.sudopwd = sudopwd
131 | self.debug = debug
132 |
133 | self._log_debug('OpenVPN: [%s]' % self.openvpn)
134 | self._log_debug('OpenVPN Configuration: [%s]' % self.ovpnconfig)
135 | self._log_debug('OpenVPN Management IP: [%s]' % self.ip)
136 | self._log_debug('OpenVPN Management Port: [%d]' % self.port)
137 | if self.args is not None:
138 | self._log_debug('Additional Arguments: [%s]' % self.args)
139 |
140 | if self.openvpn is None or not os.path.exists(self.openvpn) or not os.path.isfile(self.openvpn):
141 | self._log_error('OpenVPN: ERROR: Specified OpenVPN does not exist')
142 |
143 | if self.ovpnconfig is None or not os.path.exists(self.ovpnconfig) or not os.path.isfile(self.ovpnconfig):
144 | self._log_error(
145 | 'OpenVPN: ERROR: Specified OpenVPN configuration file does not exist')
146 |
147 | self.interface = None
148 | self.workdir = os.path.dirname(ovpnconfig)
149 | self.logfile = os.path.join(self.workdir, 'openvpn.log')
150 |
151 | def _log_debug(self, msg):
152 | if self.debug:
153 | print 'OpenVPN: DEBUG: %s' % msg
154 |
155 | def _log_error(self, msg):
156 | print 'OpenVPN: ERROR: %s' % msg
157 |
158 | def connect_to_interface(self, logerror):
159 | if self.interface is None:
160 | self.interface = OpenVPNManagementInterface(self.ip, self.port, self)
161 | try:
162 | self.interface.connect()
163 | except socket.error as exception:
164 | if logerror:
165 | self._log_error(exception)
166 | else:
167 | self._log_debug(exception)
168 | self.interface = None
169 | return False
170 | return True
171 |
172 | def disconnect(self):
173 | self.connect_to_interface(False)
174 | self._log_debug('Disconnecting OpenVPN')
175 | self.interface.send('signal SIGTERM\n')
176 | time.sleep(self.timeout)
177 | self.interface.disconnect()
178 | self.interface = None
179 | self._log_debug('Disconnect OpenVPN successful')
180 |
181 | def connect(self):
182 | self._log_debug('Connecting OpenVPN')
183 |
184 | isrunning = self.connect_to_interface(False)
185 | if isrunning:
186 | self._log_debug('OpenVPN is already running')
187 | self.interface.disconnect()
188 | raise OpenVPNError(1, 'OpenVPN is already running')
189 |
190 | cmdline = '\'%s\' --cd \'%s\' --daemon --management %s %d --config \'%s\' --log \'%s\'' % (
191 | self.openvpn, self.workdir, self.ip, self.port, self.ovpnconfig, self.logfile)
192 | if self.args is not None:
193 | cmdline = '%s %s' % (cmdline, self.args)
194 |
195 | self._log_debug('Command line: [%s]' % cmdline)
196 |
197 | if self.sudo:
198 | self._log_debug('Using sudo')
199 | if self.sudopwd:
200 | cmdline = 'echo \'%s\' | sudo -S %s' % (self.sudopwd, cmdline)
201 | else:
202 | cmdline = 'sudo %s' % (cmdline)
203 |
204 | self.process = subprocess.Popen(cmdline, cwd=self.workdir, shell=True,
205 | stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
206 | time.sleep(self.timeout)
207 | if not self.connect_to_interface(True):
208 | self._log_debug('Connect OpenVPN failed')
209 | raise OpenVPNError(
210 | 2, 'Unable to connect to OpenVPN management interface')
211 |
212 | self._log_debug('Connect OpenVPN successful')
213 |
--------------------------------------------------------------------------------
/resources/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------