2023-11-29 23:21:54 Auto Sync
@ -1,674 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"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.
|
||||
|
||||
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.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
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:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
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".
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
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:
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
"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.
|
||||
|
||||
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).
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"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.
|
||||
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
8. Termination.
|
||||
|
||||
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).
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
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.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
11. Patents.
|
||||
|
||||
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".
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
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.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
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.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
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.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
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.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
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.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
@ -1,75 +0,0 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=chinadns-ng
|
||||
PKG_VERSION:=2023.10.28
|
||||
PKG_RELEASE:=42
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/zfl9/chinadns-ng.git
|
||||
PKG_SOURCE_VERSION:=66426e2da2c9e34d70f25a5adf5cb3f588556f41
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_SOURCE_SUBDIR)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=pexcn <pexcn97@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/chinadns-ng
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=ChinaDNS Next Generation, refactoring with epoll and ipset
|
||||
URL:=https://github.com/zfl9/chinadns-ng
|
||||
DEPENDS:=+ipset
|
||||
endef
|
||||
|
||||
define Package/chinadns-ng/description
|
||||
ChinaDNS Next Generation, refactoring with epoll and ipset.
|
||||
endef
|
||||
|
||||
define Package/chinadns-ng/conffiles
|
||||
/etc/config/chinadns-ng
|
||||
/etc/chinadns-ng/chnroute.txt
|
||||
/etc/chinadns-ng/chnroute6.txt
|
||||
/etc/chinadns-ng/gfwlist.txt
|
||||
/etc/chinadns-ng/chinalist.txt
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += STATIC=1
|
||||
|
||||
define Package/chinadns-ng/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chinadns-ng $(1)/usr/bin
|
||||
$(INSTALL_BIN) files/chinadns-ng-daily.sh $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) files/chinadns-ng.init $(1)/etc/init.d/chinadns-ng
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) files/chinadns-ng.config $(1)/etc/config/chinadns-ng
|
||||
$(INSTALL_DIR) $(1)/etc/chinadns-ng
|
||||
$(INSTALL_DATA) files/chnroute.txt $(1)/etc/chinadns-ng
|
||||
$(INSTALL_DATA) files/chnroute6.txt $(1)/etc/chinadns-ng
|
||||
$(INSTALL_DATA) files/gfwlist.txt $(1)/etc/chinadns-ng
|
||||
$(INSTALL_DATA) files/chinalist.txt $(1)/etc/chinadns-ng
|
||||
endef
|
||||
|
||||
define Package/chinadns-ng/postinst
|
||||
#!/bin/sh
|
||||
if ! crontab -l | grep -q "chinadns-ng"; then
|
||||
(crontab -l; echo -e "# chinadns-ng\n10 3 * * * /usr/bin/chinadns-ng-daily.sh") | crontab -
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
|
||||
define Package/chinadns-ng/postrm
|
||||
#!/bin/sh
|
||||
rmdir --ignore-fail-on-non-empty /etc/chinadns-ng
|
||||
(crontab -l | grep -v "chinadns-ng") | crontab -
|
||||
exit 0
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,chinadns-ng))
|
@ -1,53 +0,0 @@
|
||||
# ChinaDNS Next Generation for OpenWrt
|
||||
|
||||
## 简介
|
||||
|
||||
本项目是 [chinadns-ng](https://github.com/zfl9/chinadns-ng) 在 OpenWrt 上的移植。
|
||||
|
||||
## 编译
|
||||
|
||||
从 OpenWrt 的 [SDK](https://openwrt.org/docs/guide-developer/obtain.firmware.sdk) 编译
|
||||
```bash
|
||||
cd openwrt-sdk
|
||||
|
||||
# 获取源码
|
||||
git clone https://github.com/pexcn/openwrt-chinadns-ng.git package/chinadns-ng
|
||||
|
||||
# 选中 Network -> chinadns-ng
|
||||
make menuconfig
|
||||
|
||||
# 编译 chinadns-ng
|
||||
make package/chinadns-ng/{clean,compile} V=s
|
||||
```
|
||||
|
||||
## 配置
|
||||
|
||||
配置文件位于 `/etc/config/chinadns-ng`, 详细的解释见: [命令选项](https://github.com/zfl9/chinadns-ng#%E5%91%BD%E4%BB%A4%E9%80%89%E9%A1%B9)
|
||||
|
||||
## 发布
|
||||
|
||||
https://github.com/openwrt-dev/feeds
|
||||
|
||||
## 鸣谢
|
||||
|
||||
- [@zfl9/chinadns-ng](https://github.com/zfl9/chinadns-ng)
|
||||
- [@aa65535/openwrt-chinadns](https://github.com/aa65535/openwrt-chinadns)
|
||||
|
||||
## 许可证
|
||||
|
||||
```
|
||||
Copyright (C) 2019-2023, pexcn <pexcn97@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
```
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
[ -d /etc/chinadns-ng ] || mkdir /etc/chinadns-ng
|
||||
|
||||
wget https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt -O /etc/chinadns-ng/chnroute.tmp
|
||||
mv -f /etc/chinadns-ng/chnroute.tmp /etc/chinadns-ng/chnroute.txt
|
||||
|
||||
wget https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute6.txt -O /etc/chinadns-ng/chnroute6.tmp
|
||||
mv -f /etc/chinadns-ng/chnroute6.tmp /etc/chinadns-ng/chnroute6.txt
|
||||
|
||||
wget https://raw.githubusercontent.com/pexcn/daily/gh-pages/gfwlist/gfwlist.txt -O /etc/chinadns-ng/gfwlist.tmp
|
||||
mv -f /etc/chinadns-ng/gfwlist.tmp /etc/chinadns-ng/gfwlist.txt
|
||||
#sed -n -i '1,100p' /etc/chinadns-ng/gfwlist.txt
|
||||
|
||||
wget https://raw.githubusercontent.com/pexcn/daily/gh-pages/chinalist/chinalist.txt -O /etc/chinadns-ng/chinalist.tmp
|
||||
mv -f /etc/chinadns-ng/chinalist.tmp /etc/chinadns-ng/chinalist.txt
|
||||
#sed -n -i '1,100p' /etc/chinadns-ng/chinalist.txt
|
||||
|
||||
/etc/init.d/chinadns-ng restart
|
@ -1,22 +0,0 @@
|
||||
|
||||
config chinadns-ng
|
||||
option enable '0'
|
||||
option bind_addr '0.0.0.0'
|
||||
option bind_port '5353'
|
||||
option china_dns '223.5.5.5,119.29.29.29'
|
||||
option trust_dns '8.8.8.8,8.8.4.4'
|
||||
option chnlist_file '/etc/chinadns-ng/chinalist.txt'
|
||||
option gfwlist_file '/etc/chinadns-ng/gfwlist.txt'
|
||||
option chnlist_first '0'
|
||||
option default_tag 'none'
|
||||
option add_tagchn_ip '0'
|
||||
option add_taggfw_ip '0'
|
||||
option ipset_name4 'chnroute'
|
||||
option ipset_name6 'chnroute6'
|
||||
option no_ipv6 '0'
|
||||
option timeout_sec '3'
|
||||
option repeat_times '2'
|
||||
option noip_as_chnip '0'
|
||||
option reuse_port '1'
|
||||
option verbose '0'
|
||||
|
@ -1,183 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
#
|
||||
# Copyright (C) 2019-2023 pexcn <pexcn97@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v3.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
# shellcheck disable=SC2155,SC3043,SC2034
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
#PROCD_DEBUG=1
|
||||
|
||||
append_param() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local switch="$3"
|
||||
local default="$4"
|
||||
local _loctmp
|
||||
config_get _loctmp "$section" "$option" "$default"
|
||||
[ -n "$_loctmp" ] || return 0
|
||||
procd_append_param command "$switch" "$_loctmp"
|
||||
}
|
||||
|
||||
append_bool() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local value="$3"
|
||||
local default="$4"
|
||||
local _loctmp
|
||||
config_get_bool _loctmp "$section" "$option" "$default"
|
||||
[ "$_loctmp" = 1 ] || return 0
|
||||
procd_append_param command "$value"
|
||||
}
|
||||
|
||||
append_param_if_neq() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local switch="$3"
|
||||
local compare="$4"
|
||||
local _loctmp
|
||||
config_get _loctmp "$section" "$option"
|
||||
[ -n "$_loctmp" ] || return 0
|
||||
[ "$_loctmp" != "$compare" ] || return 0
|
||||
procd_append_param command "$switch" "$_loctmp"
|
||||
}
|
||||
|
||||
append_param_with_val() {
|
||||
local section="$1"
|
||||
local option="$2"
|
||||
local switch="$3"
|
||||
local _loctmp
|
||||
config_get _loctmp "$section" "$option"
|
||||
[ -n "$_loctmp" ] || return 0
|
||||
[ "$_loctmp" != 0 ] || return 0
|
||||
if [ "$_loctmp" = 1 ]; then
|
||||
procd_append_param command "$switch"
|
||||
else
|
||||
procd_append_param command "$switch" "$_loctmp"
|
||||
fi
|
||||
}
|
||||
|
||||
get_cpu_cores() {
|
||||
grep -c "^processor" /proc/cpuinfo
|
||||
}
|
||||
|
||||
is_exist_ipset() {
|
||||
ipset list -n "$1" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
destroy_ipset() {
|
||||
ipset flush "$1" 2>/dev/null
|
||||
ipset destroy "$1" 2>/dev/null
|
||||
}
|
||||
|
||||
create_chnroute_ipset() {
|
||||
local enable
|
||||
config_get_bool enable "$1" enable
|
||||
[ "$enable" = 1 ] || return 0
|
||||
|
||||
config_foreach create_ipv4_ipset chinadns-ng
|
||||
config_foreach create_ipv6_ipset chinadns-ng
|
||||
}
|
||||
|
||||
create_ipv4_ipset() {
|
||||
local ipset_name
|
||||
config_get ipset_name "$1" "ipset_name4" "chnroute"
|
||||
|
||||
if is_exist_ipset "$ipset_name"; then
|
||||
ipset flush "$ipset_name"
|
||||
else
|
||||
ipset create "$ipset_name" hash:net hashsize 64 family inet
|
||||
fi
|
||||
|
||||
ipset restore <<-EOF
|
||||
$(sed "s/^/add $ipset_name /" </etc/chinadns-ng/chnroute.txt)
|
||||
EOF
|
||||
}
|
||||
|
||||
create_ipv6_ipset() {
|
||||
local ipset_name
|
||||
config_get ipset_name "$1" "ipset_name6" "chnroute6"
|
||||
|
||||
if is_exist_ipset "$ipset_name"; then
|
||||
ipset flush "$ipset_name"
|
||||
else
|
||||
ipset create "$ipset_name" hash:net hashsize 64 family inet6
|
||||
fi
|
||||
|
||||
ipset restore <<-EOF
|
||||
$(sed "s/^/add $ipset_name /" </etc/chinadns-ng/chnroute6.txt)
|
||||
EOF
|
||||
}
|
||||
|
||||
destroy_chnroute_ipset() {
|
||||
# force destroy, even though does not exist or config file changed
|
||||
config_foreach destroy_ipv4_ipset chinadns-ng
|
||||
config_foreach destroy_ipv6_ipset chinadns-ng
|
||||
}
|
||||
|
||||
destroy_ipv4_ipset() {
|
||||
local ipset_name
|
||||
config_get ipset_name "$1" "ipset_name4" "chnroute"
|
||||
destroy_ipset "$ipset_name"
|
||||
}
|
||||
|
||||
destroy_ipv6_ipset() {
|
||||
local ipset_name
|
||||
config_get ipset_name "$1" "ipset_name6" "chnroute6"
|
||||
destroy_ipset "$ipset_name"
|
||||
}
|
||||
|
||||
start_chinadns_ng() {
|
||||
local enable
|
||||
config_get_bool enable "$1" enable
|
||||
[ "$enable" = 1 ] || return 0
|
||||
|
||||
local reuse_port instances="$(get_cpu_cores)"
|
||||
config_get_bool reuse_port "$1" reuse_port
|
||||
[ "$reuse_port" = 1 ] || instances=1
|
||||
|
||||
for i in $(seq 1 "$instances"); do
|
||||
procd_open_instance
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_set_param nice -5
|
||||
procd_set_param limits nofile="1048576 1048576"
|
||||
procd_set_param command /usr/bin/chinadns-ng
|
||||
append_param "$1" bind_addr "-b"
|
||||
append_param "$1" bind_port "-l"
|
||||
append_param "$1" china_dns "-c"
|
||||
append_param "$1" trust_dns "-t"
|
||||
append_param "$1" chnlist_file "-m"
|
||||
append_param "$1" gfwlist_file "-g"
|
||||
append_bool "$1" chnlist_first "-M"
|
||||
append_param_if_neq "$1" default_tag "-d" "none"
|
||||
append_param_with_val "$1" add_tagchn_ip "-a"
|
||||
append_param_with_val "$1" add_taggfw_ip "-A"
|
||||
append_param_if_neq "$1" ipset_name4 "-4" "chnroute"
|
||||
append_param_if_neq "$1" ipset_name6 "-6" "chnroute6"
|
||||
append_param_with_val "$1" no_ipv6 "-N"
|
||||
append_param_if_neq "$1" timeout_sec "-o" "5"
|
||||
append_param_if_neq "$1" repeat_times "-p" "1"
|
||||
append_bool "$1" noip_as_chnip "-n"
|
||||
append_bool "$1" reuse_port "-r"
|
||||
append_bool "$1" verbose "-v"
|
||||
procd_close_instance
|
||||
done
|
||||
}
|
||||
|
||||
start_service() {
|
||||
config_load chinadns-ng
|
||||
config_foreach create_chnroute_ipset chinadns-ng
|
||||
config_foreach start_chinadns_ng chinadns-ng
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
config_load chinadns-ng
|
||||
config_foreach destroy_chnroute_ipset chinadns-ng
|
||||
}
|
61
gn/Makefile
@ -1,61 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2022 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gn
|
||||
PKG_RELEASE:=6
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://gn.googlesource.com/gn.git
|
||||
PKG_SOURCE_DATE:=2023-04-05
|
||||
PKG_SOURCE_VERSION:=28b7b6c507eb808567e3aea446cd259f7691fddc
|
||||
PKG_MIRROR_HASH:=skip
|
||||
|
||||
PKG_LICENSE:=BSD 3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
|
||||
ifneq ($(wildcard $(TOPDIR)/feeds/packages/devel/ninja/ninja.mk),)
|
||||
PKG_BUILD_DEPENDS+= ninja/host
|
||||
endif
|
||||
PKG_HOST_ONLY:=1
|
||||
HOST_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/gn
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=A meta-build system that generates build files for Ninja
|
||||
URL:=https://gn.googlesource.com/gn/
|
||||
BUILDONLY:=1
|
||||
endef
|
||||
|
||||
define Package/gn/description
|
||||
GN can generate Ninja build files for C, C++, Rust, Objective C,
|
||||
and Swift source on most popular platforms.
|
||||
endef
|
||||
|
||||
define Host/Configure
|
||||
$(PYTHON) $(HOST_BUILD_DIR)/build/gen.py \
|
||||
--no-last-commit-position
|
||||
endef
|
||||
|
||||
define Host/Compile
|
||||
ninja -C $(HOST_BUILD_DIR)/out
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
|
||||
$(INSTALL_BIN) $(HOST_BUILD_DIR)/out/gn $(STAGING_DIR_HOSTPKG)/bin/
|
||||
endef
|
||||
|
||||
define Host/Clean
|
||||
$(RM) $(STAGING_DIR_HOSTPKG)/bin/gn
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
$(eval $(call BuildPackage,gn))
|
@ -1,11 +0,0 @@
|
||||
--- a/build/gen.py
|
||||
+++ b/build/gen.py
|
||||
@@ -368,7 +368,7 @@ def WriteGNNinja(path, platform, host, o
|
||||
cxx = os.environ.get('CXX', 'g++')
|
||||
ld = os.environ.get('LD', 'g++')
|
||||
ar = os.environ.get('AR', 'ar -X64')
|
||||
- elif platform.is_msys() or platform.is_mingw():
|
||||
+ elif platform.is_msys() or platform.is_mingw() or platform.is_linux():
|
||||
cxx = os.environ.get('CXX', 'g++')
|
||||
ld = os.environ.get('LD', 'g++')
|
||||
ar = os.environ.get('AR', 'ar')
|
@ -1,9 +0,0 @@
|
||||
// Generated by build/gen.py.
|
||||
|
||||
#ifndef OUT_LAST_COMMIT_POSITION_H_
|
||||
#define OUT_LAST_COMMIT_POSITION_H_
|
||||
|
||||
#define LAST_COMMIT_POSITION_NUM 2085
|
||||
#define LAST_COMMIT_POSITION "2085 (28b7b6c507eb)"
|
||||
|
||||
#endif // OUT_LAST_COMMIT_POSITION_H_
|
@ -1,59 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hysteria
|
||||
PKG_VERSION:=2.2.2
|
||||
PKG_RELEASE:=55
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/apernet/hysteria/tar.gz/app/v$(PKG_VERSION)?
|
||||
PKG_HASH:=skip
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-app-v$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILE:=LICENSE
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
|
||||
PKG_BUILD_DEPENDS:=golang/host
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
PKG_BUILD_FLAGS:=no-mips16
|
||||
|
||||
GO_PKG:=github.com/apernet/hysteria
|
||||
GO_PKG_BUILD_PKG:=$(GO_PKG)/app
|
||||
GO_PKG_LDFLAGS_X = \
|
||||
$(GO_PKG)/app/cmd.appVersion=v$(PKG_VERSION) \
|
||||
$(GO_PKG)/app/cmd.appType=release \
|
||||
$(GO_PKG)/app/cmd.appPlatform=$(GO_OS) \
|
||||
$(GO_PKG)/app/cmd.appArch=$(GO_ARCH)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
|
||||
|
||||
define Package/hysteria
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=A feature-packed network utility optimized for networks of poor quality
|
||||
URL:=https://github.com/apernet/hysteria
|
||||
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
|
||||
endef
|
||||
|
||||
define Package/hysteria/description
|
||||
Hysteria is a feature-packed network utility optimized for networks
|
||||
of poor quality (e.g. satellite connections, congested public Wi-Fi,
|
||||
connecting from China to servers abroad) powered by a custom version
|
||||
of QUIC protocol.
|
||||
endef
|
||||
|
||||
define Package/hysteria/install
|
||||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/app $(1)/usr/bin/hysteria
|
||||
endef
|
||||
|
||||
$(eval $(call GoBinPackage,hysteria))
|
||||
$(eval $(call BuildPackage,hysteria))
|
@ -1,46 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ipt2socks
|
||||
PKG_VERSION:=1.1.3
|
||||
PKG_RELEASE:=17
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/zfl9/ipt2socks/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=skip
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
PKG_BUILD_FLAGS:=no-mips16
|
||||
|
||||
PKG_LICENSE:=AGPL-3.0
|
||||
PKG_LICENSE_FILE:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/ipt2socks
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Convert iptables to socks5
|
||||
URL:=https://github.com/zfl9/ipt2socks
|
||||
DEPENDS:=+libpthread
|
||||
endef
|
||||
|
||||
define Package/ipt2socks/description
|
||||
Utility for converting iptables (redirect/tproxy) to socks5.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS+= $(FPIC) -flto
|
||||
MAKE_FLAGS+= \
|
||||
CFLAGS="-std=c99 -pthread $(TARGET_CFLAGS)" \
|
||||
EVCFLAGS="$(TARGET_CFLAGS)"
|
||||
|
||||
define Package/ipt2socks/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt2socks $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,ipt2socks))
|
@ -1,44 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2020 jerryk <jerrykuku@qq.com>
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lua-maxminddb
|
||||
PKG_VERSION:=0.2
|
||||
PKG_RELEASE:=18
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/fabled/lua-maxminddb.git
|
||||
PKG_SOURCE_DATE:=2019-03-14
|
||||
PKG_SOURCE_VERSION:=93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b
|
||||
PKG_MIRROR_HASH:=skip
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILE:=LICENSE
|
||||
PKG_MAINTAINER:=fabled
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lua-maxminddb
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=libmaxminddb bindings for lua
|
||||
URL:=https://github.com/jerrykuku/lua-maxminddb
|
||||
DEPENDS:=+lua +libmaxminddb
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
MAKE_VARS += LUA_PKG=lua
|
||||
|
||||
define Package/lua-maxminddb/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/maxminddb.so $(1)/usr/lib/lua/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lua-maxminddb))
|
@ -1,44 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2022-2023 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=neturl
|
||||
PKG_VERSION:=1.1-1
|
||||
PKG_RELEASE:=7
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/golgote/neturl/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=skip
|
||||
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICNESE_FILES:=LICENSE.txt
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lua-neturl
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=URL and Query string parser, builder, normalizer for Lua
|
||||
URL:=https://github.com/golgote/neturl
|
||||
DEPENDS:=+lua
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/lua-neturl/description
|
||||
This small Lua library provides a few functions to parse URL with
|
||||
querystring and build new URL easily.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/lua-neturl/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(CP) $(PKG_BUILD_DIR)/lib/net/url.lua $(1)/usr/lib/lua/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lua-neturl))
|
@ -1,20 +0,0 @@
|
||||
--- a/lib/net/url.lua
|
||||
+++ b/lib/net/url.lua
|
||||
@@ -340,7 +340,7 @@ function M:setAuthority(authority)
|
||||
self.password = v
|
||||
return ''
|
||||
end)
|
||||
- if string.find(userinfo, "^[%w%+%.]+$") then
|
||||
+ if string.find(userinfo, "^[%p%w%+%.]+$") then
|
||||
self.user = userinfo
|
||||
else
|
||||
-- incorrect userinfo
|
||||
@@ -369,7 +369,7 @@ function M.parse(url)
|
||||
comp.fragment = v
|
||||
return ''
|
||||
end)
|
||||
- url =url:gsub('^([%w][%w%+%-%.]*)%:', function(v)
|
||||
+ url =url:gsub('^([%w][%w%+%-%_%.]*)%:', function(v)
|
||||
comp.scheme = v:lower()
|
||||
return ''
|
||||
end)
|
@ -1,103 +0,0 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-bypass
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_obfs \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_obfs_server \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Xray \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Trojan \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Socks5_Proxy \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Socks_Server
|
||||
|
||||
LUCI_TITLE:=SS/SSR/Xray/Trojan/NaiveProxy/Socks5/Tun LuCI interface
|
||||
LUCI_PKGARCH:=all
|
||||
LUCI_DEPENDS:=+ipset +kmod-ipt-nat +ip-full +iptables-mod-tproxy +lua-neturl +dnsmasq-full +smartdns +coreutils +coreutils-base64 +curl +tcping +chinadns-ng +lua +luci-compat +luci-lib-ipkg +unzip +lua-maxminddb \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server:shadowsocks-libev-ss-server \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-local \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-redir \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client:shadowsocksr-libev-ssr-local \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client:shadowsocksr-libev-ssr-redir \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server:shadowsocksr-libev-ssr-server \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_obfs:simple-obfs \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin:v2ray-plugin \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Xray:xray-core \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan-plus \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy:naiveproxy \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun:kcptun-client \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria:hysteria \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Socks5_Proxy:redsocks2 \
|
||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Socks_Server:microsocks
|
||||
|
||||
define Package/$(PKG_NAME)/config
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client
|
||||
bool "Include Shadowsocks Libev Client"
|
||||
default y if i386||x86_64||arm||aarch64
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server
|
||||
bool "Include Shadowsocks Libev Server"
|
||||
default y if i386||x86_64||arm||aarch64
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Client
|
||||
bool "Include ShadowsocksR Libev Client"
|
||||
default y
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server
|
||||
bool "Include ShadowsocksR Libev Server"
|
||||
default y if i386||x86_64||aarch64
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs
|
||||
bool "Include Shadowsocks Simple Obfs Plugin"
|
||||
default y
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_plugin
|
||||
bool "Include Shadowsocks V2ray Plugin"
|
||||
default n
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Xray
|
||||
bool "Include Xray"
|
||||
default y
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan
|
||||
bool "Include Trojan"
|
||||
default y if i386||x86_64||arm||aarch64
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy
|
||||
bool "Include NaiveProxy"
|
||||
depends on !(arc||armeb||mips||mips64||powerpc)
|
||||
default n
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun
|
||||
bool "Include Kcptun"
|
||||
default n
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Hysteria
|
||||
bool "Include Hysteria"
|
||||
default n
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Socks5_Proxy
|
||||
bool "Include Socks5 Transparent Proxy"
|
||||
default n
|
||||
|
||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Socks_Server
|
||||
bool "Include Socks Sever"
|
||||
default y
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/bypass
|
||||
/etc/bypass/
|
||||
endef
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
@ -1,238 +0,0 @@
|
||||
module("luci.controller.bypass",package.seeall)
|
||||
local http = require "luci.http"
|
||||
local api = require "luci.model.cbi.bypass.api"
|
||||
local xray = require "luci.model.cbi.bypass.xray"
|
||||
function index()
|
||||
if not nixio.fs.access("/etc/config/bypass") then
|
||||
return
|
||||
end
|
||||
local e=entry({"admin","services","bypass"},firstchild(),_("Bypass"),2)
|
||||
e.dependent=false
|
||||
e.acl_depends={ "luci-app-bypass" }
|
||||
entry({"admin","services","bypass","base"},cbi("bypass/base"),_("Base Setting"),1).leaf=true
|
||||
entry({"admin","services","bypass","servers"},arcombine(cbi("bypass/servers",{autoapply=true}),cbi("bypass/client-config")),_("Severs Nodes"),2).leaf=true
|
||||
entry({"admin","services","bypass","control"},cbi("bypass/control"),_("Access Control"),3).leaf=true
|
||||
entry({"admin","services","bypass","advanced"},cbi("bypass/advanced"),_("Advanced Settings"),4).leaf=true
|
||||
entry({"admin", "services", "bypass", "app_update"}, cbi("bypass/app_update"), _("App Update"), 5).leaf = true
|
||||
if luci.sys.call("which ssr-server >/dev/null")==0 or luci.sys.call("which ss-server >/dev/null")==0 or luci.sys.call("which microsocks >/dev/null")==0 then
|
||||
entry({"admin","services","bypass","server"},arcombine(cbi("bypass/server"),cbi("bypass/server-config")),_("SSR Server"),6).leaf=true
|
||||
end
|
||||
entry({"admin","services","bypass","status"},form("bypass/status"),_("Status"),7).leaf=true
|
||||
entry({"admin","services","bypass","log"},form("bypass/log"),_("Log"),8).leaf=true
|
||||
entry({"admin","services","bypass","check"},call("check_status"))
|
||||
entry({"admin","services","bypass","subscribe"},call("subscribe"))
|
||||
entry({"admin","services","bypass","checkport"},call("check_port"))
|
||||
entry({"admin","services","bypass","run"},call("act_status"))
|
||||
entry({"admin","services","bypass","ping"},call("act_ping"))
|
||||
entry({"admin", "services", "bypass", "xray_check"}, call("xray_check")).leaf = true
|
||||
entry({"admin", "services", "bypass", "xray_update"}, call("xray_update")).leaf = true
|
||||
entry({"admin", "services", "bypass", "v2ray_check"}, call("v2ray_check")).leaf = true
|
||||
entry({"admin", "services", "bypass", "v2ray_update"}, call("v2ray_update")).leaf = true
|
||||
entry({'admin', 'services', "bypass", 'ip'}, call('check_ip')) -- 获取ip情况
|
||||
entry({"admin", "services", "bypass", "status"}, call("status")).leaf = true
|
||||
entry({"admin", "services", "bypass", "socks_status"}, call("socks_status")).leaf = true
|
||||
entry({"admin", "services", "bypass", "connect_status"}, call("connect_status")).leaf = true
|
||||
entry({"admin", "services", "bypass", "check_port"}, call("check_port")).leaf = true
|
||||
end
|
||||
|
||||
function subscribe()
|
||||
luci.sys.call("/usr/share/bypass/subscribe >> /var/log/bypass.log 2>&1")
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json({ret=1})
|
||||
end
|
||||
|
||||
function act_status()
|
||||
local e={}
|
||||
e.running=luci.sys.call("ps -w | grep by-retcp | grep -v grep >/dev/null")==0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
||||
|
||||
function act_ping()
|
||||
local e = {}
|
||||
local domain = luci.http.formvalue("domain")
|
||||
local port = luci.http.formvalue("port")
|
||||
local transport = luci.http.formvalue("transport")
|
||||
local wsPath = luci.http.formvalue("wsPath")
|
||||
local tls = luci.http.formvalue("tls")
|
||||
e.index = luci.http.formvalue("index")
|
||||
local iret = luci.sys.call("ipset add ss_spec_wan_ac " .. domain .. " 2>/dev/null")
|
||||
if transport == "ws" then
|
||||
local prefix = tls=='1' and "https://" or "http://"
|
||||
local address = prefix..domain..':'..port..wsPath
|
||||
local result = luci.sys.exec("curl --http1.1 -m 3 -s -i -N -o /dev/null -w 'time_connect=%{time_connect}\nhttp_code=%{http_code}' -H 'Connection: Upgrade' -H 'Upgrade: websocket' -H 'Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==' -H 'Sec-WebSocket-Version: 13' "..address)
|
||||
e.socket = string.match(result,"http_code=(%d+)")=="101"
|
||||
e.ping = tonumber(string.match(result, "time_connect=(%d+.%d%d%d)"))*1000
|
||||
else
|
||||
local socket = nixio.socket("inet", "stream")
|
||||
socket:setopt("socket", "rcvtimeo", 3)
|
||||
socket:setopt("socket", "sndtimeo", 3)
|
||||
e.socket = socket:connect(domain, port)
|
||||
socket:close()
|
||||
-- e.ping = luci.sys.exec("ping -c 1 -W 1 %q 2>&1 | grep -o 'time=[0-9]*.[0-9]' | awk -F '=' '{print$2}'" % domain)
|
||||
-- if (e.ping == "") then
|
||||
e.ping = luci.sys.exec(string.format("echo -n $(tcping -q -c 1 -i 1 -t 2 -p %s %s 2>&1 | grep -o 'time=[0-9]*' | awk -F '=' '{print $2}') 2>/dev/null", port, domain))
|
||||
-- end
|
||||
|
||||
end
|
||||
if (iret == 0) then
|
||||
luci.sys.call(" ipset del ss_spec_wan_ac " .. domain)
|
||||
end
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
||||
|
||||
function check_status()
|
||||
sret=luci.sys.call("curl -so /dev/null -m 3 www."..luci.http.formvalue("set")..".com")
|
||||
if sret==0 then
|
||||
retstring="0"
|
||||
else
|
||||
retstring="1"
|
||||
end
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json({ret=retstring})
|
||||
end
|
||||
|
||||
function check_port()
|
||||
local retstring="<br/>"
|
||||
local s
|
||||
local server_name
|
||||
local iret=1
|
||||
luci.model.uci.cursor():foreach("bypass","servers",function(s)
|
||||
if s.alias then
|
||||
server_name=s.alias
|
||||
elseif s.server and s.server_port then
|
||||
server_name="%s:%s"%{s.server,s.server_port}
|
||||
end
|
||||
luci.sys.exec(s.server..">>/a")
|
||||
local dp=luci.sys.exec("netstat -unl | grep 5336 >/dev/null && echo -n 5336 || echo -n 53")
|
||||
local ip=luci.sys.exec("echo "..s.server.." | grep -E \"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$\" || \\\
|
||||
nslookup "..s.server.." 127.0.0.1:"..dp.." 2>/dev/null | grep Address | awk -F' ' '{print$NF}' | grep -E \"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$\" | sed -n 1p")
|
||||
ip=luci.sys.exec("echo -n "..ip)
|
||||
iret=luci.sys.call("ipset add ss_spec_wan_ac "..ip.." 2>/dev/null")
|
||||
socket=nixio.socket("inet","stream")
|
||||
socket:setopt("socket","rcvtimeo",3)
|
||||
socket:setopt("socket","sndtimeo",3)
|
||||
ret=socket:connect(ip,s.server_port)
|
||||
socket:close()
|
||||
if tostring(ret)=="true" then
|
||||
retstring=retstring.."<font color='green'>["..server_name.."] OK.</font><br/>"
|
||||
else
|
||||
retstring=retstring.."<font color='red'>["..server_name.."] Error.</font><br/>"
|
||||
end
|
||||
if iret==0 then
|
||||
luci.sys.call("ipset del ss_spec_wan_ac "..ip)
|
||||
end
|
||||
end)
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json({ret=retstring})
|
||||
end
|
||||
|
||||
local function http_write_json(content)
|
||||
http.prepare_content("application/json")
|
||||
http.write_json(content or {code = 1})
|
||||
end
|
||||
|
||||
function xray_check()
|
||||
local json = xray.to_check("")
|
||||
http_write_json(json)
|
||||
end
|
||||
|
||||
function xray_update()
|
||||
local json = nil
|
||||
local task = http.formvalue("task")
|
||||
if task == "extract" then
|
||||
json = xray.to_extract(http.formvalue("file"), http.formvalue("subfix"))
|
||||
elseif task == "move" then
|
||||
json = xray.to_move(http.formvalue("file"))
|
||||
else
|
||||
json = xray.to_download(http.formvalue("url"))
|
||||
end
|
||||
|
||||
http_write_json(json)
|
||||
end
|
||||
|
||||
function get_iso(ip)
|
||||
local mm = require 'maxminddb'
|
||||
local db = mm.open('/usr/share/bypass/GeoLite2-Country.mmdb')
|
||||
local res = db:lookup(ip)
|
||||
return string.lower(res:get('country', 'iso_code'))
|
||||
end
|
||||
|
||||
function get_cname(ip)
|
||||
local mm = require 'maxminddb'
|
||||
local db = mm.open('/usr/share/bypass/GeoLite2-Country.mmdb')
|
||||
local res = db:lookup(ip)
|
||||
return string.lower(res:get('country', 'names', 'zh-CN'))
|
||||
end
|
||||
|
||||
function check_site(host, port)
|
||||
local nixio = require "nixio"
|
||||
local socket = nixio.socket("inet", "stream")
|
||||
socket:setopt("socket", "rcvtimeo", 2)
|
||||
socket:setopt("socket", "sndtimeo", 2)
|
||||
local ret = socket:connect(host, port)
|
||||
socket:close()
|
||||
return ret
|
||||
end
|
||||
|
||||
-- 获取当前代理状态 与节点ip
|
||||
function check_ip()
|
||||
local e = {}
|
||||
local d = {}
|
||||
local port = 80
|
||||
local ip = luci.sys.exec('curl --retry 3 -m 10 -LfsA "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36" http://api.ipify.org/')
|
||||
d.flag = 'un'
|
||||
d.country = 'Unknown'
|
||||
if (ip ~= '') then
|
||||
local status, code = pcall(get_iso, ip)
|
||||
if (status) then
|
||||
d.flag = code
|
||||
end
|
||||
local status1, country = pcall(get_cname, ip)
|
||||
if (status1) then
|
||||
d.country = country
|
||||
end
|
||||
end
|
||||
e.outboard = ip
|
||||
e.outboardip = d
|
||||
e.baidu = check_site('www.baidu.com', port)
|
||||
e.taobao = check_site('www.taobao.com', port)
|
||||
e.google = check_site('www.google.com', port)
|
||||
e.youtube = check_site('www.youtube.com', port)
|
||||
luci.http.prepare_content('application/json')
|
||||
luci.http.write_json(e)
|
||||
end
|
||||
|
||||
function status()
|
||||
local e = {}
|
||||
e.dns_mode_status = luci.sys.call("pidof smartdns >/dev/null") == 0
|
||||
e.socks5_status = luci.sys.call("ps -w | grep by- | grep socks5 | grep -v grep >/dev/null") == 0
|
||||
e.tcp_node_status = luci.sys.call("ps -w | grep by-retcp | grep -v grep >/dev/null") == 0
|
||||
e.udp_node_status = luci.sys.call("ps -w | grep by-reudp | grep -v grep >/dev/null") == 0
|
||||
e.kcptun_tcp_node_status = luci.sys.call("pidof kcptun-client >/dev/null") == 0
|
||||
e.nf_node_status = luci.sys.call("ps -w | grep by-nf | grep -v grep >/dev/null") == 0
|
||||
e.server_status = luci.sys.call("ps -w | grep by-server | grep -v grep >/dev/null") == 0
|
||||
e.chinadns_status = luci.sys.call("ps -w | grep chinadns-ng | grep -v grep >/dev/null") == 0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
||||
|
||||
function connect_status()
|
||||
local e = {}
|
||||
e.use_time = ""
|
||||
local url = luci.http.formvalue("url")
|
||||
local result = luci.sys.exec('curl --connect-timeout 3 -o /dev/null -I -skL -w "%{http_code}:%{time_starttransfer}" ' .. url)
|
||||
local code = tonumber(luci.sys.exec("echo -n '" .. result .. "' | awk -F ':' '{print $1}'") or "0")
|
||||
if code ~= 0 then
|
||||
local use_time = luci.sys.exec("echo -n '" .. result .. "' | awk -F ':' '{print $2}'")
|
||||
if use_time:find("%.") then
|
||||
e.use_time = string.format("%.2f", use_time * 1000)
|
||||
else
|
||||
e.use_time = string.format("%.2f", use_time / 1000)
|
||||
end
|
||||
e.ping_type = "curl"
|
||||
end
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
@ -1,58 +0,0 @@
|
||||
local server_table={}
|
||||
luci.model.uci.cursor():foreach("bypass","servers",function(s)
|
||||
if (s.type=="ss" and not nixio.fs.access("/usr/bin/ss-local")) or (s.type=="ssr" and not nixio.fs.access("/usr/bin/ssr-local")) or s.type=="socks5" or s.type=="tun" then
|
||||
return
|
||||
end
|
||||
if s.alias then
|
||||
server_table[s[".name"]]="[%s]:%s"%{string.upper(s.type),s.alias}
|
||||
elseif s.server and s.server_port then
|
||||
server_table[s[".name"]]="[%s]:%s:%s"%{string.upper(s.type),s.server,s.server_port}
|
||||
end
|
||||
end)
|
||||
|
||||
local key_table={}
|
||||
for key,_ in pairs(server_table) do
|
||||
table.insert(key_table,key)
|
||||
end
|
||||
|
||||
table.sort(key_table)
|
||||
|
||||
m=Map("bypass")
|
||||
|
||||
s=m:section(TypedSection,"global",translate("Server failsafe auto swith settings"))
|
||||
s.anonymous=true
|
||||
|
||||
o=s:option(Flag,"monitor_enable",translate("Enable Process Deamon"))
|
||||
o.default=1
|
||||
|
||||
o=s:option(Flag,"enable_switch",translate("Enable Auto Switch"))
|
||||
o.default=1
|
||||
|
||||
o=s:option(Value,"switch_time",translate("Switch check cycly(second)"))
|
||||
o.datatype="uinteger"
|
||||
o.default=300
|
||||
o:depends("enable_switch",1)
|
||||
|
||||
o=s:option(Value,"switch_timeout",translate("Check timout(second)"))
|
||||
o.datatype="uinteger"
|
||||
o.default=5
|
||||
o:depends("enable_switch",1)
|
||||
|
||||
o=s:option(Value,"switch_try_count",translate("Check Try Count"))
|
||||
o.datatype="uinteger"
|
||||
o.default=3
|
||||
o:depends("enable_switch",1)
|
||||
|
||||
s=m:section(TypedSection,"socks5_proxy",translate("Global SOCKS5 Proxy Server"))
|
||||
s.anonymous=true
|
||||
|
||||
o=s:option(ListValue,"server",translate("Server"))
|
||||
o:value("",translate("Disable"))
|
||||
o:value("same",translate("Same as Global Server"))
|
||||
for _,key in pairs(key_table) do o:value(key,server_table[key]) end
|
||||
|
||||
o=s:option(Value,"local_port",translate("Local Port"))
|
||||
o.datatype="port"
|
||||
o.placeholder=1080
|
||||
|
||||
return m
|
@ -1,235 +0,0 @@
|
||||
module("luci.model.cbi.bypass.api", package.seeall)
|
||||
local fs = require "nixio.fs"
|
||||
local sys = require "luci.sys"
|
||||
local uci = require"luci.model.uci".cursor()
|
||||
local util = require "luci.util"
|
||||
local datatypes = require "luci.cbi.datatypes"
|
||||
local i18n = require "luci.i18n"
|
||||
|
||||
appname = "bypass"
|
||||
curl = "/usr/bin/curl"
|
||||
curl_args = {"-skL", "--connect-timeout 3", "--retry 3", "-m 60"}
|
||||
wget = "/usr/bin/wget"
|
||||
wget_args = {"--no-check-certificate", "--quiet", "--timeout=100", "--tries=3"}
|
||||
command_timeout = 300
|
||||
LEDE_BOARD = nil
|
||||
DISTRIB_TARGET = nil
|
||||
|
||||
function is_exist(table, value)
|
||||
for index, k in ipairs(table) do
|
||||
if k == value then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function get_args(arg, myarg)
|
||||
local var = {}
|
||||
for i, arg_k in pairs(arg) do
|
||||
if i > 0 then
|
||||
if is_exist(myarg, arg_k) == true then
|
||||
local v = arg[i + 1]
|
||||
if v then
|
||||
if is_exist(myarg, v) == false then
|
||||
var[arg_k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return var
|
||||
end
|
||||
|
||||
function chmod_755(file)
|
||||
if file and file ~= "" then
|
||||
if not fs.access(file, "rwx", "rx", "rx") then
|
||||
fs.chmod(file, 755)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function is_finded(e)
|
||||
return luci.sys.exec('which "%s"' % e) ~= "" and true or false
|
||||
end
|
||||
|
||||
function get_xray_path()
|
||||
local path = "/usr/bin/xray"
|
||||
return path
|
||||
end
|
||||
|
||||
function get_xray_version(file)
|
||||
if file == nil then file = get_xray_path() end
|
||||
chmod_755(file)
|
||||
if fs.access(file) then
|
||||
if file == get_xray_path() then
|
||||
local md5 = sys.exec("echo -n $(md5sum " .. file .. " | awk '{print $1}')")
|
||||
if fs.access("/tmp/psw_" .. md5) then
|
||||
return sys.exec("echo -n $(cat /tmp/psw_%s)" % md5)
|
||||
else
|
||||
local version = sys.exec("echo -n $(%s -version | awk '{print $2}' | sed -n 1P)" % file)
|
||||
sys.call("echo '" .. version .. "' > " .. "/tmp/psw_" .. md5)
|
||||
return version
|
||||
end
|
||||
else
|
||||
return sys.exec("echo -n $(%s -version | awk '{print $2}' | sed -n 1P)" % file)
|
||||
end
|
||||
end
|
||||
return ""
|
||||
end
|
||||
|
||||
function get_free_space(dir)
|
||||
if dir == nil then dir = "/" end
|
||||
if sys.call("df -k " .. dir .. " >/dev/null") == 0 then
|
||||
return tonumber(sys.exec("echo -n $(df -k " .. dir .. " | awk 'NR>1' | awk '{print $4}')"))
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
function get_file_space(file)
|
||||
if file == nil then return 0 end
|
||||
if fs.access(file) then
|
||||
return tonumber(sys.exec("echo -n $(du -k " .. file .. " | awk '{print $1}')"))
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
function _unpack(t, i)
|
||||
i = i or 1
|
||||
if t[i] ~= nil then return t[i], _unpack(t, i + 1) end
|
||||
end
|
||||
|
||||
function exec(cmd, args, writer, timeout)
|
||||
local os = require "os"
|
||||
local nixio = require "nixio"
|
||||
|
||||
local fdi, fdo = nixio.pipe()
|
||||
local pid = nixio.fork()
|
||||
|
||||
if pid > 0 then
|
||||
fdo:close()
|
||||
|
||||
if writer or timeout then
|
||||
local starttime = os.time()
|
||||
while true do
|
||||
if timeout and os.difftime(os.time(), starttime) >= timeout then
|
||||
nixio.kill(pid, nixio.const.SIGTERM)
|
||||
return 1
|
||||
end
|
||||
|
||||
if writer then
|
||||
local buffer = fdi:read(2048)
|
||||
if buffer and #buffer > 0 then
|
||||
writer(buffer)
|
||||
end
|
||||
end
|
||||
|
||||
local wpid, stat, code = nixio.waitpid(pid, "nohang")
|
||||
|
||||
if wpid and stat == "exited" then return code end
|
||||
|
||||
if not writer and timeout then nixio.nanosleep(1) end
|
||||
end
|
||||
else
|
||||
local wpid, stat, code = nixio.waitpid(pid)
|
||||
return wpid and stat == "exited" and code
|
||||
end
|
||||
elseif pid == 0 then
|
||||
nixio.dup(fdo, nixio.stdout)
|
||||
fdi:close()
|
||||
fdo:close()
|
||||
nixio.exece(cmd, args, nil)
|
||||
nixio.stdout:close()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
|
||||
function compare_versions(ver1, comp, ver2)
|
||||
local table = table
|
||||
|
||||
if not ver1 then ver1 = "" end
|
||||
if not ver2 then ver2 = "" end
|
||||
|
||||
local av1 = util.split(ver1, "[%.%-]", nil, true)
|
||||
local av2 = util.split(ver2, "[%.%-]", nil, true)
|
||||
|
||||
local max = table.getn(av1)
|
||||
local n2 = table.getn(av2)
|
||||
if (max < n2) then max = n2 end
|
||||
|
||||
for i = 1, max, 1 do
|
||||
local s1 = tonumber(av1[i] or 0) or 0
|
||||
local s2 = tonumber(av2[i] or 0) or 0
|
||||
|
||||
if comp == "~=" and (s1 ~= s2) then return true end
|
||||
if (comp == "<" or comp == "<=") and (s1 < s2) then return true end
|
||||
if (comp == ">" or comp == ">=") and (s1 > s2) then return true end
|
||||
if (s1 ~= s2) then return false end
|
||||
end
|
||||
|
||||
return not (comp == "<" or comp == ">")
|
||||
end
|
||||
|
||||
function auto_get_arch()
|
||||
local arch = nixio.uname().machine or ""
|
||||
if fs.access("/usr/lib/os-release") then
|
||||
LEDE_BOARD = sys.exec("echo -n $(grep 'LEDE_BOARD' /usr/lib/os-release | awk -F '[\\042\\047]' '{print $2}')")
|
||||
end
|
||||
if fs.access("/etc/openwrt_release") then
|
||||
DISTRIB_TARGET = sys.exec("echo -n $(grep 'DISTRIB_TARGET' /etc/openwrt_release | awk -F '[\\042\\047]' '{print $2}')")
|
||||
end
|
||||
|
||||
if arch == "mips" then
|
||||
if LEDE_BOARD and LEDE_BOARD ~= "" then
|
||||
if string.match(LEDE_BOARD, "ramips") == "ramips" then
|
||||
arch = "ramips"
|
||||
else
|
||||
arch = sys.exec("echo '" .. LEDE_BOARD .. "' | grep -oE 'ramips|ar71xx'")
|
||||
end
|
||||
elseif DISTRIB_TARGET and DISTRIB_TARGET ~= "" then
|
||||
if string.match(DISTRIB_TARGET, "ramips") == "ramips" then
|
||||
arch = "ramips"
|
||||
else
|
||||
arch = sys.exec("echo '" .. DISTRIB_TARGET .. "' | grep -oE 'ramips|ar71xx'")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return util.trim(arch)
|
||||
end
|
||||
|
||||
function get_file_info(arch)
|
||||
local file_tree = ""
|
||||
local sub_version = ""
|
||||
|
||||
if arch == "x86_64" then
|
||||
file_tree = "amd64"
|
||||
elseif arch == "aarch64" then
|
||||
file_tree = "arm64"
|
||||
elseif arch == "ramips" then
|
||||
file_tree = "mipsle"
|
||||
elseif arch == "ar71xx" then
|
||||
file_tree = "mips"
|
||||
elseif arch:match("^i[%d]86$") then
|
||||
file_tree = "386"
|
||||
elseif arch:match("^armv[5-8]") then
|
||||
file_tree = "arm"
|
||||
sub_version = arch:match("[5-8]")
|
||||
if LEDE_BOARD and string.match(LEDE_BOARD, "bcm53xx") == "bcm53xx" then
|
||||
sub_version = "5"
|
||||
elseif DISTRIB_TARGET and string.match(DISTRIB_TARGET, "bcm53xx") ==
|
||||
"bcm53xx" then
|
||||
sub_version = "5"
|
||||
end
|
||||
sub_version = "5"
|
||||
end
|
||||
|
||||
return file_tree, sub_version
|
||||
end
|
||||
|
||||
function get_api_json(url)
|
||||
local jsonc = require "luci.jsonc"
|
||||
local json_content = luci.sys.exec(curl .. " " .. _unpack(curl_args) .. " " .. url)
|
||||
if json_content == "" then return {} end
|
||||
return jsonc.parse(json_content) or {}
|
||||
end
|
@ -1,11 +0,0 @@
|
||||
m = Map("bypass")
|
||||
|
||||
-- [[ App Settings ]]--
|
||||
s = m:section(TypedSection, "global", translate("App Update"),
|
||||
"<font color='red'>" ..
|
||||
translate("Please confirm that your firmware supports FPU.") ..
|
||||
"</font>")
|
||||
s.anonymous = true
|
||||
s:append(Template("bypass/xray_version"))
|
||||
|
||||
return m
|
@ -1,129 +0,0 @@
|
||||
local m,s,o
|
||||
local bypass="bypass"
|
||||
|
||||
m=Map(bypass)
|
||||
m:section(SimpleSection).template="bypass/status"
|
||||
|
||||
local server_table={}
|
||||
luci.model.uci.cursor():foreach(bypass,"servers",function(s)
|
||||
if s.alias then
|
||||
server_table[s[".name"]]="[%s]:%s"%{string.upper(s.type),s.alias}
|
||||
elseif s.server and s.server_port then
|
||||
server_table[s[".name"]]="[%s]:%s:%s"%{string.upper(s.type),s.server,s.server_port}
|
||||
end
|
||||
end)
|
||||
|
||||
local key_table={}
|
||||
for key in pairs(server_table) do
|
||||
table.insert(key_table,key)
|
||||
end
|
||||
table.sort(key_table)
|
||||
|
||||
s = m:section(TypedSection, 'global')
|
||||
s.anonymous=true
|
||||
|
||||
o=s:option(ListValue,"global_server",translate("Main Server"))
|
||||
o:value("",translate("Disable"))
|
||||
for _,key in pairs(key_table) do o:value(key,server_table[key]) end
|
||||
|
||||
o=s:option(ListValue,"udp_relay_server",translate("Game Mode UDP Server"))
|
||||
o:value("",translate("Disable"))
|
||||
o:value("same",translate("Same as Global Server"))
|
||||
for _,key in pairs(key_table) do o:value(key,server_table[key]) end
|
||||
|
||||
o=s:option(ListValue,"nf_server",translate("Netflix Server"))
|
||||
o:value("",translate("Same as Global Server"))
|
||||
for _,key in pairs(key_table) do o:value(key,server_table[key]) end
|
||||
o:depends("run_mode","gfw")
|
||||
o:depends("run_mode","router")
|
||||
o:depends("run_mode","all")
|
||||
|
||||
o=s:option(Flag,"nf_proxy",translate("External Proxy Mode"),
|
||||
translate("Forward Netflix Proxy through Main Proxy"))
|
||||
for _,key in pairs(key_table) do o:depends("nf_server",key) end
|
||||
|
||||
o=s:option(ListValue,"threads",translate("Multi Threads Option"))
|
||||
o:value("0",translate("Auto Threads"))
|
||||
o:value("1",translate("1 Thread"))
|
||||
o:value("2",translate("2 Threads"))
|
||||
o:value("4",translate("4 Threads"))
|
||||
o:value("8",translate("8 Threads"))
|
||||
o:value("16",translate("16 Threads"))
|
||||
o:value("32",translate("32 Threads"))
|
||||
o:value("64",translate("64 Threads"))
|
||||
o:value("128",translate("128 Threads"))
|
||||
|
||||
o=s:option(ListValue,"run_mode",translate("Running Mode"))
|
||||
o:value("router",translate("Smart Mode"))
|
||||
o:value("gfw",translate("GFW List Mode"))
|
||||
o:value("all",translate("Global Mode"))
|
||||
o:value("oversea",translate("Oversea Mode"))
|
||||
|
||||
if luci.sys.call("test `grep MemTotal /proc/meminfo | awk '{print $2}'` -le 233000") == 0 then
|
||||
o=s:option(Flag,"gfw_mode",translate("Load GFW List"),
|
||||
translate("If the domestic DNS does not hijack foreign domain name to domestic IP, No need to be enabled"))
|
||||
o:depends("run_mode","router")
|
||||
o.default=1
|
||||
end
|
||||
|
||||
if luci.sys.call("test `grep MemTotal /proc/meminfo | awk '{print $2}'` -gt 233000") == 0 then
|
||||
o=s:option(Flag,"adguardhome",translate("Used with AdGuardHome"),
|
||||
translate("Luci-app-adguardhome require"))
|
||||
if luci.sys.call("test `which AdGuardHome` && test -r /etc/init.d/AdGuardHome") == 0 then
|
||||
o.default=1
|
||||
else
|
||||
o.default=0
|
||||
end
|
||||
end
|
||||
|
||||
o=s:option(ListValue,"dports",translate("Proxy Ports"))
|
||||
o:value("1",translate("All Ports"))
|
||||
o:value("2",translate("Only Common Ports"))
|
||||
|
||||
o=s:option(ListValue,"dns_mode_o",translate("Foreign Resolve Dns Mode"))
|
||||
o:value("doh",translate("Use SmartDNS DoH query"))
|
||||
o:value("tcp",translate("Use SmartDNS TCP query"))
|
||||
o.default="doh"
|
||||
|
||||
o=s:option(Value,"doh_dns_o",translate("Foreign DoH"),
|
||||
translate("Custom DNS format is https://cloudflare-dns.com/dns-query or https://104.16.249.249/dns-query -http-host cloudflare-dns.com"))
|
||||
o:value("cloudflare","Cloudflare DoH")
|
||||
o:value("google",""..translate("Google").." DoH")
|
||||
o:value("quad9","Quad9 DoH")
|
||||
o:value("opendns","OpenDNS DoH")
|
||||
o.default="google"
|
||||
o:depends("dns_mode_o","doh")
|
||||
|
||||
o=s:option(Value,"tcp_dns_o",translate("Foreign DNS"),
|
||||
translate("Custom DNS format is 1.1.1.1:53,1.0.0.1 ,Port optional"))
|
||||
o:value("1.1.1.1,1.0.0.1","1.1.1.1,1.0.0.1 (Cloudflare DNS)")
|
||||
o:value("8.8.8.8,8.8.4.4","8.8.8.8,8.8.4.4 (Google DNS)")
|
||||
o:value("9.9.9.9,149.112.112.112","9.9.9.9,149.112.112.112 (Quad9 DNS)")
|
||||
o:value("208.67.222.222,208.67.220.220","208.67.222.222,208.67.220.220 (OpenDNS)")
|
||||
o.default="8.8.8.8,8.8.4.4"
|
||||
o:depends("dns_mode_o","tcp")
|
||||
|
||||
o=s:option(ListValue,"dns_mode_d",translate("Domestic Resolve Dns Mode"),
|
||||
translate("If DoH resolution is not normal,use UDP mode and select ISP DNS"))
|
||||
o:value("doh",translate("Use SmartDNS DoH query"))
|
||||
o:value("udp",translate("Use SmartDNS UDP query"))
|
||||
o.default="udp"
|
||||
|
||||
o=s:option(Value,"doh_dns_d",translate("Domestic DoH"),
|
||||
translate("Custom DNS format is https://dns.alidns.com/dns-query or https://223.5.5.5/dns-query"))
|
||||
o:value("alidns",""..translate("Ali").." DoH")
|
||||
o:value("dnspod","Dnspod DoH")
|
||||
o.default="alidns"
|
||||
o:depends("dns_mode_d","doh")
|
||||
|
||||
o=s:option(Value,"udp_dns_d",translate("Domestic DNS"),
|
||||
translate("Custom DNS format is 223.5.5.5:53,223.6.6.6 ,Port optional"))
|
||||
o:value("isp",translate("ISP DNS"))
|
||||
o:value("223.5.5.5,223.6.6.6","223.5.5.5,223.6.6.6 ("..translate("Ali").." DNS)")
|
||||
o:value("119.29.29.29,119.28.28.28","119.29.29.29,119.28.28.28 (Dnspod DNS)")
|
||||
o:value("114.114.114.114,114.114.115.115","114.114.114.114,114.114.115.115 (114 DNS)")
|
||||
o.default="isp"
|
||||
o:depends("dns_mode_d","udp")
|
||||
m:section(SimpleSection).template = 'bypass/status_bottom'
|
||||
|
||||
return m
|
@ -1,838 +0,0 @@
|
||||
-- Copyright (C) 2017 yushi studio <ywb94@qq.com> github.com/ywb94
|
||||
-- Licensed to the public under the GNU General Public License v3.
|
||||
|
||||
require "nixio.fs"
|
||||
require "luci.sys"
|
||||
require "luci.http"
|
||||
require "luci.model.ipkg"
|
||||
|
||||
local m, s, o
|
||||
local sid = arg[1]
|
||||
local uuid = luci.sys.exec("cat /proc/sys/kernel/random/uuid")
|
||||
|
||||
local function is_finded(e)
|
||||
return luci.sys.exec('type -t -p "%s"' % e) ~= "" and true or false
|
||||
end
|
||||
|
||||
local function is_installed(e)
|
||||
return luci.model.ipkg.installed(e)
|
||||
end
|
||||
|
||||
local server_table = {}
|
||||
local encrypt_methods = {
|
||||
-- ssr
|
||||
"none",
|
||||
"table",
|
||||
"rc4",
|
||||
"rc4-md5-6",
|
||||
"rc4-md5",
|
||||
"aes-128-cfb",
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"aes-128-ctr",
|
||||
"aes-192-ctr",
|
||||
"aes-256-ctr",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"cast5-cfb",
|
||||
"des-cfb",
|
||||
"idea-cfb",
|
||||
"rc2-cfb",
|
||||
"seed-cfb",
|
||||
"salsa20",
|
||||
"chacha20",
|
||||
"chacha20-ietf"
|
||||
}
|
||||
|
||||
local encrypt_methods_ss = {
|
||||
-- plain
|
||||
"none",
|
||||
"plain",
|
||||
-- aead
|
||||
"aes-128-gcm",
|
||||
"aes-192-gcm",
|
||||
"aes-256-gcm",
|
||||
"chacha20-ietf-poly1305",
|
||||
"xchacha20-ietf-poly1305",
|
||||
-- aead 2022
|
||||
"2022-blake3-aes-128-gcm",
|
||||
"2022-blake3-aes-256-gcm",
|
||||
"2022-blake3-chacha20-poly1305"
|
||||
--[[ stream
|
||||
"none",
|
||||
"plain",
|
||||
"table",
|
||||
"rc4",
|
||||
"rc4-md5",
|
||||
"aes-128-cfb",
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"aes-128-ctr",
|
||||
"aes-192-ctr",
|
||||
"aes-256-ctr",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"salsa20",
|
||||
"chacha20",
|
||||
"chacha20-ietf" ]]
|
||||
}
|
||||
|
||||
local protocol = {
|
||||
-- ssr
|
||||
"origin",
|
||||
"verify_deflate",
|
||||
"auth_sha1_v4",
|
||||
"auth_aes128_sha1",
|
||||
"auth_aes128_md5",
|
||||
"auth_chain_a",
|
||||
"auth_chain_b",
|
||||
"auth_chain_c",
|
||||
"auth_chain_d",
|
||||
"auth_chain_e",
|
||||
"auth_chain_f"
|
||||
}
|
||||
|
||||
local obfs = {
|
||||
-- ssr
|
||||
"plain",
|
||||
"http_simple",
|
||||
"http_post",
|
||||
"random_head",
|
||||
"tls1.2_ticket_auth"
|
||||
}
|
||||
|
||||
local securitys = {
|
||||
-- vmess
|
||||
"auto",
|
||||
"none",
|
||||
"zero",
|
||||
"aes-128-gcm",
|
||||
"chacha20-poly1305"
|
||||
}
|
||||
|
||||
local tls_flows = {
|
||||
-- tls
|
||||
"xtls-rprx-vision",
|
||||
"xtls-rprx-vision-udp443"
|
||||
}
|
||||
|
||||
m = Map("bypass", translate("Edit Bypass Server"))
|
||||
m.redirect = luci.dispatcher.build_url("admin/services/bypass/servers")
|
||||
if m.uci:get("bypass", sid) ~= "servers" then
|
||||
luci.http.redirect(m.redirect)
|
||||
return
|
||||
end
|
||||
|
||||
-- [[ Servers Setting ]]--
|
||||
s = m:section(NamedSection, sid, "servers")
|
||||
s.anonymous = true
|
||||
s.addremove = false
|
||||
|
||||
o = s:option(DummyValue, "ssr_url", "SS/SSR/V2RAY/TROJAN URL")
|
||||
o.rawhtml = true
|
||||
o.template = "bypass/ssrurl"
|
||||
o.value = sid
|
||||
|
||||
o = s:option(ListValue, "type", translate("Server Node Type"))
|
||||
if is_finded("xray") or is_finded("v2ray") then
|
||||
o:value("v2ray", translate("V2Ray/XRay"))
|
||||
end
|
||||
if is_finded("ssr-redir") then
|
||||
o:value("ssr", translate("ShadowsocksR"))
|
||||
end
|
||||
if is_finded("sslocal") or is_finded("ss-redir") then
|
||||
o:value("ss", translate("Shadowsocks New Version"))
|
||||
end
|
||||
if is_finded("trojan-plus") then
|
||||
o:value("trojan", translate("Trojan"))
|
||||
end
|
||||
if is_finded("naive") then
|
||||
o:value("naiveproxy", translate("NaiveProxy"))
|
||||
end
|
||||
if is_finded("hysteria") then
|
||||
o:value("hysteria", translate("Hysteria"))
|
||||
end
|
||||
if is_finded("tuic-client") then
|
||||
o:value("tuic", translate("TUIC"))
|
||||
end
|
||||
if is_finded("ipt2socks") then
|
||||
o:value("socks5", translate("Socks5"))
|
||||
end
|
||||
if is_finded("redsocks2") then
|
||||
o:value("tun", translate("Network Tunnel"))
|
||||
end
|
||||
|
||||
o.description = translate("Using incorrect encryption mothod may causes service fail to start")
|
||||
|
||||
o = s:option(Value, "alias", translate("Alias(optional)"))
|
||||
|
||||
o = s:option(ListValue, "iface", translate("Network interface to use"))
|
||||
for _, e in ipairs(luci.sys.net.devices()) do
|
||||
if e ~= "lo" then
|
||||
o:value(e)
|
||||
end
|
||||
end
|
||||
o:depends("type", "tun")
|
||||
o.description = translate("Redirect traffic to this network interface")
|
||||
|
||||
o = s:option(ListValue, "v2ray_protocol", translate("V2Ray/XRay protocol"))
|
||||
o:value("vless", translate("VLESS"))
|
||||
o:value("vmess", translate("VMess"))
|
||||
o:value("trojan", translate("Trojan"))
|
||||
o:value("shadowsocks", translate("Shadowsocks"))
|
||||
if is_finded("xray") then
|
||||
o:value("wireguard", translate("WireGuard"))
|
||||
end
|
||||
o:value("socks", translate("Socks"))
|
||||
o:value("http", translate("HTTP"))
|
||||
o:depends("type", "v2ray")
|
||||
|
||||
o = s:option(Value, "server", translate("Server Address"))
|
||||
o.datatype = "host"
|
||||
o.rmempty = false
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "v2ray")
|
||||
o:depends("type", "trojan")
|
||||
o:depends("type", "naiveproxy")
|
||||
o:depends("type", "hysteria")
|
||||
o:depends("type", "tuic")
|
||||
o:depends("type", "socks5")
|
||||
|
||||
o = s:option(Value, "server_port", translate("Server Port"))
|
||||
o.datatype = "port"
|
||||
o.rmempty = false
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "v2ray")
|
||||
o:depends("type", "trojan")
|
||||
o:depends("type", "naiveproxy")
|
||||
o:depends("type", "hysteria")
|
||||
o:depends("type", "tuic")
|
||||
o:depends("type", "socks5")
|
||||
|
||||
o = s:option(Flag, "auth_enable", translate("Enable Authentication"))
|
||||
o.rmempty = false
|
||||
o.default = "0"
|
||||
o:depends("type", "socks5")
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks"})
|
||||
|
||||
o = s:option(Value, "username", translate("Username"))
|
||||
o.rmempty = true
|
||||
o:depends("type", "naiveproxy")
|
||||
o:depends({type = "socks5", auth_enable = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http", auth_enable = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks", auth_enable = true})
|
||||
|
||||
o = s:option(Value, "password", translate("Password"))
|
||||
o.password = true
|
||||
o.rmempty = true
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "trojan")
|
||||
o:depends("type", "naiveproxy")
|
||||
o:depends("type", "tuic")
|
||||
o:depends({type = "socks5", auth_enable = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http", auth_enable = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks", socks_ver = "5", auth_enable = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "trojan"})
|
||||
|
||||
o = s:option(ListValue, "encrypt_method", translate("Encrypt Method"))
|
||||
for _, v in ipairs(encrypt_methods) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(ListValue, "encrypt_method_ss", translate("Encrypt Method"))
|
||||
for _, v in ipairs(encrypt_methods_ss) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends("type", "ss")
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
|
||||
o = s:option(Flag, "uot", translate("UDP over TCP"))
|
||||
o.description = translate("Enable the SUoT protocol, requires server support.")
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
o.default = "0"
|
||||
|
||||
o = s:option(Flag, "ivCheck", translate("Bloom Filter"))
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
o.default = "1"
|
||||
|
||||
-- Shadowsocks Plugin
|
||||
o = s:option(Value, "plugin", translate("Obfs"))
|
||||
o:value("none", translate("None"))
|
||||
if is_finded("obfs-local") then
|
||||
o:value("obfs-local", translate("obfs-local"))
|
||||
end
|
||||
if is_finded("v2ray-plugin") then
|
||||
o:value("v2ray-plugin", translate("v2ray-plugin"))
|
||||
end
|
||||
if is_finded("xray-plugin") then
|
||||
o:value("xray-plugin", translate("xray-plugin"))
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(Value, "plugin_opts", translate("Plugin Opts"))
|
||||
o.rmempty = true
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(ListValue, "protocol", translate("Protocol"))
|
||||
for _, v in ipairs(protocol) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(Value, "protocol_param", translate("Protocol param (optional)"))
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(ListValue, "obfs", translate("Obfs"))
|
||||
for _, v in ipairs(obfs) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(Value, "obfs_param", translate("Obfs param (optional)"))
|
||||
o:depends("type", "ssr")
|
||||
|
||||
-- [[ Hysteria ]]--
|
||||
o = s:option(ListValue, "hysteria_protocol", translate("Protocol"))
|
||||
o:depends("type", "hysteria")
|
||||
o:value("udp", translate("udp"))
|
||||
o:value("wechat-video", translate("wechat-video"))
|
||||
o:value("faketcp", translate("faketcp"))
|
||||
o.default = "udp"
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(ListValue, "auth_type", translate("Authentication type"))
|
||||
o:depends("type", "hysteria")
|
||||
o:value("0", translate("disabled"))
|
||||
o:value("1", translate("base64"))
|
||||
o:value("2", translate("string"))
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "auth_payload", translate("Authentication payload"))
|
||||
o:depends({type = "hysteria", auth_type = "1"})
|
||||
o:depends({type = "hysteria", auth_type = "2"})
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "recv_window", translate("QUIC connection receive window"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "recv_window_conn", translate("QUIC stream receive window"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "disable_mtu_discovery", translate("Disable Path MTU discovery"))
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "lazy_start", translate("Lazy Start"))
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
|
||||
-- [[ TUIC ]]
|
||||
o = s:option(ListValue, "udp_relay_mode", translate("UDP relay mode"))
|
||||
o:depends("type", "tuic")
|
||||
o:value("native", translate("native"))
|
||||
o:value("quic", translate("QUIC"))
|
||||
o.default = "native"
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(ListValue, "congestion_controller", translate("Congestion control algorithm"))
|
||||
o:depends("type", "tuic")
|
||||
o:value("bbr", translate("BBR"))
|
||||
o:value("cubic", translate("CUBIC"))
|
||||
o:value("new_reno", translate("New Reno"))
|
||||
o.default = "cubic"
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "heartbeat_interval", translate("Heartbeat interval"))
|
||||
o:depends("type", "tuic")
|
||||
o.datatype = "uinteger"
|
||||
o.default = "10000"
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "disable_sni", translate("Disable SNI"))
|
||||
o:depends("type", "tuic")
|
||||
o.default = 0
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "reduce_rtt", translate("Enable 0-RTT QUIC handshake"))
|
||||
o:depends("type", "tuic")
|
||||
o.default = 0
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "max_udp_relay_packet_size", translate("Max UDP relay packet size"))
|
||||
o:depends("type", "tuic")
|
||||
o.datatype = "uinteger"
|
||||
o.default = "1500"
|
||||
o.rmempty = true
|
||||
|
||||
-- VmessId
|
||||
o = s:option(Value, "vmess_id", translate("Vmess/VLESS ID (UUID)"))
|
||||
o.rmempty = true
|
||||
o.default = uuid
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless"})
|
||||
|
||||
-- VLESS Encryption
|
||||
o = s:option(Value, "vless_encryption", translate("VLESS Encryption"))
|
||||
o.rmempty = true
|
||||
o.default = "none"
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless"})
|
||||
|
||||
-- 加密方式
|
||||
o = s:option(ListValue, "security", translate("Encrypt Method"))
|
||||
for _, v in ipairs(securitys) do
|
||||
o:value(v, v:upper())
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess"})
|
||||
|
||||
-- SOCKS Version
|
||||
o = s:option(ListValue, "socks_ver", translate("Socks Version"))
|
||||
o:value("4", "Socks4")
|
||||
o:value("4a", "Socks4A")
|
||||
o:value("5", "Socks5")
|
||||
o.rmempty = true
|
||||
o.default = "5"
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks"})
|
||||
|
||||
-- 传输协议
|
||||
o = s:option(ListValue, "transport", translate("Transport"))
|
||||
o:value("tcp", "TCP")
|
||||
o:value("kcp", "mKCP")
|
||||
o:value("ws", "WebSocket")
|
||||
o:value("h2", "HTTP/2")
|
||||
o:value("quic", "QUIC")
|
||||
o:value("grpc", "gRPC")
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "trojan"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http"})
|
||||
|
||||
-- [[ TCP部分 ]]--
|
||||
-- TCP伪装
|
||||
o = s:option(ListValue, "tcp_guise", translate("Camouflage Type"))
|
||||
o:depends("transport", "tcp")
|
||||
o:value("none", translate("None"))
|
||||
o:value("http", "HTTP")
|
||||
o.rmempty = true
|
||||
|
||||
-- HTTP域名
|
||||
o = s:option(Value, "http_host", translate("HTTP Host"))
|
||||
o:depends("tcp_guise", "http")
|
||||
o.rmempty = true
|
||||
|
||||
-- HTTP路径
|
||||
o = s:option(Value, "http_path", translate("HTTP Path"))
|
||||
o:depends("tcp_guise", "http")
|
||||
o.rmempty = true
|
||||
|
||||
-- [[ WS部分 ]]--
|
||||
-- WS域名
|
||||
o = s:option(Value, "ws_host", translate("WebSocket Host"))
|
||||
o:depends({transport = "ws", tls = false})
|
||||
o.datatype = "hostname"
|
||||
o.rmempty = true
|
||||
|
||||
-- WS路径
|
||||
o = s:option(Value, "ws_path", translate("WebSocket Path"))
|
||||
o:depends("transport", "ws")
|
||||
o.rmempty = true
|
||||
|
||||
if is_finded("v2ray") then
|
||||
-- WS前置数据
|
||||
o = s:option(Value, "ws_ed", translate("Max Early Data"))
|
||||
o:depends("ws_ed_enable", true)
|
||||
o.datatype = "uinteger"
|
||||
o:value("2048")
|
||||
o.rmempty = true
|
||||
|
||||
-- WS前置数据标头
|
||||
o = s:option(Value, "ws_ed_header", translate("Early Data Header Name"))
|
||||
o:depends("ws_ed_enable", true)
|
||||
o:value("Sec-WebSocket-Protocol")
|
||||
o.rmempty = true
|
||||
end
|
||||
|
||||
-- [[ H2部分 ]]--
|
||||
|
||||
-- H2域名
|
||||
o = s:option(Value, "h2_host", translate("HTTP/2 Host"))
|
||||
o:depends("transport", "h2")
|
||||
o.rmempty = true
|
||||
|
||||
-- H2路径
|
||||
o = s:option(Value, "h2_path", translate("HTTP/2 Path"))
|
||||
o:depends("transport", "h2")
|
||||
o.rmempty = true
|
||||
|
||||
-- gRPC
|
||||
o = s:option(Value, "serviceName", translate("gRPC Service Name"))
|
||||
o:depends("transport", "grpc")
|
||||
o.rmempty = true
|
||||
|
||||
if is_finded("xray") then
|
||||
-- gPRC模式
|
||||
o = s:option(ListValue, "grpc_mode", translate("gRPC Mode"))
|
||||
o:depends("transport", "grpc")
|
||||
o:value("gun", translate("Gun"))
|
||||
o:value("multi", translate("Multi"))
|
||||
o.rmempty = true
|
||||
end
|
||||
|
||||
if is_finded("xray") then
|
||||
-- gRPC初始窗口
|
||||
o = s:option(Value, "initial_windows_size", translate("Initial Windows Size"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "grpc")
|
||||
o.default = 0
|
||||
o.rmempty = true
|
||||
|
||||
-- H2/gRPC健康检查
|
||||
o = s:option(Flag, "health_check", translate("H2/gRPC Health Check"))
|
||||
o:depends("transport", "h2")
|
||||
o:depends("transport", "grpc")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "read_idle_timeout", translate("H2 Read Idle Timeout"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends({health_check = true, transport = "h2"})
|
||||
o.default = 60
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "idle_timeout", translate("gRPC Idle Timeout"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends({health_check = true, transport = "grpc"})
|
||||
o.default = 60
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "health_check_timeout", translate("Health Check Timeout"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("health_check", 1)
|
||||
o.default = 20
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "permit_without_stream", translate("Permit Without Stream"))
|
||||
o:depends({health_check = true, transport = "grpc"})
|
||||
o.rmempty = true
|
||||
end
|
||||
|
||||
-- [[ QUIC部分 ]]--
|
||||
o = s:option(ListValue, "quic_security", translate("QUIC Security"))
|
||||
o:depends("transport", "quic")
|
||||
o:value("none", translate("None"))
|
||||
o:value("aes-128-gcm", translate("aes-128-gcm"))
|
||||
o:value("chacha20-poly1305", translate("chacha20-poly1305"))
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "quic_key", translate("QUIC Key"))
|
||||
o:depends("transport", "quic")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(ListValue, "quic_guise", translate("Header"))
|
||||
o:depends("transport", "quic")
|
||||
o.rmempty = true
|
||||
o:value("none", translate("None"))
|
||||
o:value("srtp", translate("VideoCall (SRTP)"))
|
||||
o:value("utp", translate("BitTorrent (uTP)"))
|
||||
o:value("wechat-video", translate("WechatVideo"))
|
||||
o:value("dtls", translate("DTLS 1.2"))
|
||||
o:value("wireguard", translate("WireGuard"))
|
||||
|
||||
-- [[ mKCP部分 ]]--
|
||||
o = s:option(ListValue, "kcp_guise", translate("Camouflage Type"))
|
||||
o:depends("transport", "kcp")
|
||||
o:value("none", translate("None"))
|
||||
o:value("srtp", translate("VideoCall (SRTP)"))
|
||||
o:value("utp", translate("BitTorrent (uTP)"))
|
||||
o:value("wechat-video", translate("WechatVideo"))
|
||||
o:value("dtls", translate("DTLS 1.2"))
|
||||
o:value("wireguard", translate("WireGuard"))
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "mtu", translate("MTU"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
||||
-- o.default = 1350
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "tti", translate("TTI"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o.default = 50
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "uplink_capacity", translate("Uplink Capacity"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o:depends("type", "hysteria")
|
||||
o.default = 5
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "downlink_capacity", translate("Downlink Capacity"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o:depends("type", "hysteria")
|
||||
o.default = 20
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "read_buffer_size", translate("Read Buffer Size"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o.default = 2
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "write_buffer_size", translate("Write Buffer Size"))
|
||||
o.datatype = "uinteger"
|
||||
o:depends("transport", "kcp")
|
||||
o.default = 2
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "seed", translate("Obfuscate password (optional)"))
|
||||
o:depends("transport", "kcp")
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Flag, "congestion", translate("Congestion"))
|
||||
o:depends("transport", "kcp")
|
||||
o.rmempty = true
|
||||
|
||||
-- [[ WireGuard 部分 ]]--
|
||||
o = s:option(DynamicList, "local_addresses", translate("Local addresses"))
|
||||
o.datatype = "cidr"
|
||||
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "private_key", translate("Private key"))
|
||||
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
||||
o.password = true
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "peer_pubkey", translate("Peer public key"))
|
||||
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "preshared_key", translate("Pre-shared key"))
|
||||
o:depends({type = "v2ray", v2ray_protocol = "wireguard"})
|
||||
o.password = true
|
||||
o.rmempty = true
|
||||
|
||||
-- [[ TLS ]]--
|
||||
o = s:option(Flag, "tls", translate("TLS"))
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", reality = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess", reality = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "trojan", reality = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks", reality = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks", socks_ver = "5", reality = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http", reality = false})
|
||||
o:depends("type", "trojan")
|
||||
|
||||
-- [[ TLS部分 ]] --
|
||||
o = s:option(Flag, "tls_sessionTicket", translate("Session Ticket"))
|
||||
o:depends({type = "trojan", tls = true})
|
||||
o.default = "0"
|
||||
|
||||
if is_finded("xray") then
|
||||
-- [[ REALITY ]]
|
||||
o = s:option(Flag, "reality", translate("REALITY"))
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", tls = false})
|
||||
|
||||
o = s:option(Value, "reality_publickey", translate("Public key"))
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", reality = true})
|
||||
|
||||
o = s:option(Value, "reality_shortid", translate("Short ID"))
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", reality = true})
|
||||
|
||||
o = s:option(Value, "reality_spiderx", translate("spiderX"))
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", reality = true})
|
||||
|
||||
-- [[ XTLS ]]--
|
||||
o = s:option(Value, "tls_flow", translate("Flow"))
|
||||
for _, v in ipairs(tls_flows) do
|
||||
o:value(v, translate(v))
|
||||
end
|
||||
o.rmempty = true
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "tcp", tls = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", transport = "tcp", reality = true})
|
||||
|
||||
-- [[ uTLS ]]--
|
||||
o = s:option(Value, "fingerprint", translate("Finger Print"))
|
||||
o:value("", translate("disable"))
|
||||
o:value("chrome", translate("chrome"))
|
||||
o:value("firefox", translate("firefox"))
|
||||
o:value("safari", translate("safari"))
|
||||
o:value("ios", translate("ios"))
|
||||
o:value("android", translate("android"))
|
||||
o:value("edge", translate("edge"))
|
||||
o:value("360", translate("360"))
|
||||
o:value("qq", translate("qq"))
|
||||
o:value("random", translate("random"))
|
||||
o:value("randomized", translate("randomized"))
|
||||
o:depends({type = "v2ray", tls = true})
|
||||
o:depends({type = "v2ray", reality = true})
|
||||
end
|
||||
|
||||
o = s:option(Value, "tls_host", translate("TLS Host"))
|
||||
o.datatype = "hostname"
|
||||
o:depends("tls", true)
|
||||
o:depends("reality", true)
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(DynamicList, "tls_alpn", translate("TLS ALPN"))
|
||||
o:depends("tls", true)
|
||||
o:depends("type", "tuic")
|
||||
o.rmempty = true
|
||||
|
||||
o = s:option(Value, "quic_tls_alpn", translate("QUIC TLS ALPN"))
|
||||
o:depends("type", "hysteria")
|
||||
o.rmempty = true
|
||||
|
||||
-- [[ allowInsecure ]]--
|
||||
o = s:option(Flag, "insecure", translate("allowInsecure"))
|
||||
o.rmempty = false
|
||||
o:depends("tls", true)
|
||||
o:depends("type", "hysteria")
|
||||
o.description = translate("If true, allowss insecure connection at TLS client, e.g., TLS server uses unverifiable certificates.")
|
||||
|
||||
-- [[ Mux ]]--
|
||||
o = s:option(Flag, "mux", translate("Mux"))
|
||||
o.rmempty = false
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "trojan"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "socks"})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "http"})
|
||||
|
||||
o = s:option(Value, "concurrency", translate("Concurrency"))
|
||||
o.datatype = "uinteger"
|
||||
o.rmempty = true
|
||||
o.default = "4"
|
||||
o:depends("mux", "1")
|
||||
o:depends("type", "naiveproxy")
|
||||
|
||||
-- [[ Cert ]]--
|
||||
o = s:option(Flag, "certificate", translate("Self-signed Certificate"))
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
o:depends("type", "tuic")
|
||||
o:depends({type = "hysteria", insecure = false})
|
||||
o:depends({type = "trojan", tls = true, insecure = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vmess", tls = true, insecure = false})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "vless", tls = true, insecure = false})
|
||||
o.description = translate("If you have a self-signed certificate,please check the box")
|
||||
|
||||
o = s:option(DummyValue, "upload", translate("Upload"))
|
||||
o.template = "bypass/certupload"
|
||||
o:depends("certificate", 1)
|
||||
|
||||
cert_dir = "/etc/ssl/private/"
|
||||
local path
|
||||
|
||||
luci.http.setfilehandler(function(meta, chunk, eof)
|
||||
if not fd then
|
||||
if (not meta) or (not meta.name) or (not meta.file) then
|
||||
return
|
||||
end
|
||||
fd = nixio.open(cert_dir .. meta.file, "w")
|
||||
if not fd then
|
||||
path = translate("Create upload file error.")
|
||||
return
|
||||
end
|
||||
end
|
||||
if chunk and fd then
|
||||
fd:write(chunk)
|
||||
end
|
||||
if eof and fd then
|
||||
fd:close()
|
||||
fd = nil
|
||||
path = '/etc/ssl/private/' .. meta.file .. ''
|
||||
end
|
||||
end)
|
||||
if luci.http.formvalue("upload") then
|
||||
local f = luci.http.formvalue("ulfile")
|
||||
if #f <= 0 then
|
||||
path = translate("No specify upload file.")
|
||||
end
|
||||
end
|
||||
|
||||
o = s:option(Value, "certpath", translate("Current Certificate Path"))
|
||||
o:depends("certificate", 1)
|
||||
o:value("/etc/ssl/private/ca.pem")
|
||||
o.description = translate("Please confirm the current certificate path")
|
||||
o.default = "/etc/ssl/private/ca.pem"
|
||||
|
||||
o = s:option(Flag, "fast_open", translate("TCP Fast Open"))
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "trojan")
|
||||
o:depends("type", "hysteria")
|
||||
|
||||
o = s:option(Flag, "switch_enable", translate("Enable Auto Switch"))
|
||||
o.rmempty = false
|
||||
o.default = "1"
|
||||
|
||||
o = s:option(Value, "local_port", translate("Local Port"))
|
||||
o.datatype = "port"
|
||||
o.default = 1234
|
||||
o.rmempty = false
|
||||
|
||||
if is_finded("kcptun-client") then
|
||||
o = s:option(Flag, "kcp_enable", translate("KcpTun Enable"))
|
||||
o.rmempty = true
|
||||
o.default = "0"
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(Value, "kcp_port", translate("KcpTun Port"))
|
||||
o.datatype = "port"
|
||||
o.default = 4000
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(Value, "kcp_password", translate("KcpTun Password"))
|
||||
o.password = true
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(Value, "kcp_param", translate("KcpTun Param"))
|
||||
o.default = "--nocomp"
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
end
|
||||
|
||||
return m
|
@ -1,135 +0,0 @@
|
||||
local fs = require "nixio.fs"
|
||||
local m,s,o
|
||||
|
||||
m=Map("bypass",translate("IP Access Control"))
|
||||
s=m:section(TypedSection,"access_control")
|
||||
s.anonymous=true
|
||||
|
||||
m.apply_on_parse=true
|
||||
function m.on_apply(self)
|
||||
luci.sys.call("/etc/init.d/bypass reload > /dev/null 2>&1 &")
|
||||
end
|
||||
|
||||
s:tab("wan_ac",translate("WAN IP AC"))
|
||||
|
||||
o=s:taboption("wan_ac",DynamicList,"wan_bp_ips",translate("WAN White List IP"))
|
||||
o.datatype="ip4addr"
|
||||
|
||||
o=s:taboption("wan_ac",DynamicList,"wan_fw_ips",translate("WAN Force Proxy IP"))
|
||||
o.datatype="ip4addr"
|
||||
|
||||
s:tab("lan_ac",translate("LAN IP AC"))
|
||||
|
||||
o=s:taboption("lan_ac",ListValue,"lan_ac_mode",translate("LAN Access Control"))
|
||||
o:value("w",translate("Allow listed only"))
|
||||
o:value("b",translate("Allow all except listed"))
|
||||
o.rmempty=false
|
||||
|
||||
o=s:taboption("lan_ac",DynamicList,"lan_ac_ips",translate("LAN Host List"))
|
||||
o.datatype="ipaddr"
|
||||
luci.ip.neighbors({family=4},function(entry)
|
||||
if entry.reachable then
|
||||
o:value(entry.dest:string())
|
||||
end
|
||||
end)
|
||||
o:depends("lan_ac_mode","w")
|
||||
o:depends("lan_ac_mode","b")
|
||||
|
||||
o=s:taboption("lan_ac",DynamicList,"lan_fp_ips",translate("LAN Force Proxy Host List"))
|
||||
o.datatype="ipaddr"
|
||||
luci.ip.neighbors({family=4},function(entry)
|
||||
if entry.reachable then
|
||||
o:value(entry.dest:string())
|
||||
end
|
||||
end)
|
||||
|
||||
o=s:taboption("lan_ac",DynamicList,"lan_gm_ips",translate("Game Mode Host List"))
|
||||
o.datatype="ipaddr"
|
||||
luci.ip.neighbors({family=4},function(entry)
|
||||
if entry.reachable then
|
||||
o:value(entry.dest:string())
|
||||
end
|
||||
end)
|
||||
|
||||
s:tab("direct_list", translate("Direct Domain List"))
|
||||
s:tab("proxy_list", translate("Proxy Domain List"))
|
||||
s:tab("netflix_list", translate("Netflix Domain List"))
|
||||
s:tab("oversea_list", translate("Oversea Domain List"))
|
||||
|
||||
---- Direct Hosts
|
||||
local direct_host = string.format("/etc/bypass/white.list")
|
||||
o = s:taboption("direct_list", TextValue, "direct_host", "", "<font color='red'>" .. translate("These had been joined websites will not proxy.") .. "</font>")
|
||||
o.rows = 15
|
||||
o.wrap = "off"
|
||||
o.cfgvalue = function(self, section) return fs.readfile(direct_host) or "" end
|
||||
o.write = function(self, section, value) fs.writefile(direct_host, value:gsub("\r\n", "\n")) end
|
||||
o.remove = function(self, section, value) fs.writefile(direct_host, "") end
|
||||
o.validate = function(self, value)
|
||||
local hosts= {}
|
||||
string.gsub(value, '[^' .. "\r\n" .. ']+', function(w) table.insert(hosts, w) end)
|
||||
for index, host in ipairs(hosts) do
|
||||
if not datatypes.hostname(host) then
|
||||
return nil, host .. " " .. translate("Not valid domain name, please re-enter!")
|
||||
end
|
||||
end
|
||||
return value
|
||||
end
|
||||
|
||||
---- Proxy Hosts
|
||||
local proxy_host = string.format("/etc/bypass/black.list")
|
||||
o = s:taboption("proxy_list", TextValue, "proxy_host", "", "<font color='red'>" .. translate("These had been joined websites will use proxy.") .. "</font>")
|
||||
o.rows = 15
|
||||
o.wrap = "off"
|
||||
o.cfgvalue = function(self, section) return fs.readfile(proxy_host) or "" end
|
||||
o.write = function(self, section, value) fs.writefile(proxy_host, value:gsub("\r\n", "\n")) end
|
||||
o.remove = function(self, section, value) fs.writefile(proxy_host, "") end
|
||||
o.validate = function(self, value)
|
||||
local hosts= {}
|
||||
string.gsub(value, '[^' .. "\r\n" .. ']+', function(w) table.insert(hosts, w) end)
|
||||
for index, host in ipairs(hosts) do
|
||||
if not datatypes.hostname(host) then
|
||||
return nil, host .. " " .. translate("Not valid domain name, please re-enter!")
|
||||
end
|
||||
end
|
||||
return value
|
||||
end
|
||||
|
||||
---- Netflix Hosts
|
||||
local netflix_host = string.format("/etc/bypass/netflix.list")
|
||||
o = s:taboption("netflix_list", TextValue, "netflix_host", "", "<font color='red'>" .. translate("Netflix Domain List") .. "</font>")
|
||||
o.rows = 15
|
||||
o.wrap = "off"
|
||||
o.cfgvalue = function(self, section) return fs.readfile(netflix_host) or "" end
|
||||
o.write = function(self, section, value) fs.writefile(netflix_host, value:gsub("\r\n", "\n")) end
|
||||
o.remove = function(self, section, value) fs.writefile(netflix_host, "") end
|
||||
o.validate = function(self, value)
|
||||
local hosts= {}
|
||||
string.gsub(value, '[^' .. "\r\n" .. ']+', function(w) table.insert(hosts, w) end)
|
||||
for index, host in ipairs(hosts) do
|
||||
if not datatypes.hostname(host) then
|
||||
return nil, host .. " " .. translate("Not valid domain name, please re-enter!")
|
||||
end
|
||||
end
|
||||
return value
|
||||
end
|
||||
|
||||
---- Oversea Hosts
|
||||
local oversea_host = string.format("/etc/bypass/oversea.list")
|
||||
o = s:taboption("oversea_list", TextValue, "oversea_host", "", "<font color='red'>" .. translate("Oversea Domain List") .. "</font>")
|
||||
o.rows = 15
|
||||
o.wrap = "off"
|
||||
o.cfgvalue = function(self, section) return fs.readfile(oversea_host) or "" end
|
||||
o.write = function(self, section, value) fs.writefile(oversea_host, value:gsub("\r\n", "\n")) end
|
||||
o.remove = function(self, section, value) fs.writefile(oversea_host, "") end
|
||||
o.validate = function(self, value)
|
||||
local hosts= {}
|
||||
string.gsub(value, '[^' .. "\r\n" .. ']+', function(w) table.insert(hosts, w) end)
|
||||
for index, host in ipairs(hosts) do
|
||||
if not datatypes.hostname(host) then
|
||||
return nil, host .. " " .. translate("Not valid domain name, please re-enter!")
|
||||
end
|
||||
end
|
||||
return value
|
||||
end
|
||||
|
||||
return m
|
@ -1,201 +0,0 @@
|
||||
module("luci.model.cbi.bypass.kcptun", package.seeall)
|
||||
local fs = require "nixio.fs"
|
||||
local sys = require "luci.sys"
|
||||
local util = require "luci.util"
|
||||
local i18n = require "luci.i18n"
|
||||
local api = require "luci.model.cbi.bypass.api"
|
||||
|
||||
local kcptun_api = "https://api.github.com/repos/xtaci/kcptun/releases/latest"
|
||||
|
||||
function to_check(arch)
|
||||
local app_path = api.get_kcptun_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Kcptun")
|
||||
}
|
||||
end
|
||||
if not arch or arch == "" then arch = api.auto_get_arch() end
|
||||
|
||||
local file_tree, sub_version = api.get_file_info(arch)
|
||||
|
||||
if file_tree == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("Can't determine ARCH, or ARCH not supported.")
|
||||
}
|
||||
end
|
||||
|
||||
local json = api.get_api_json(kcptun_api)
|
||||
|
||||
if json.tag_name == nil then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("Get remote version info failed.")
|
||||
}
|
||||
end
|
||||
|
||||
local now_version = api.get_kcptun_version()
|
||||
local remote_version = json.tag_name:match("[^v]+")
|
||||
local needs_update = api.compare_versions(now_version, "<", remote_version)
|
||||
local html_url, download_url
|
||||
|
||||
if needs_update then
|
||||
html_url = json.html_url
|
||||
for _, v in ipairs(json.assets) do
|
||||
if v.name and v.name:match("linux%-" .. file_tree .. sub_version) then
|
||||
download_url = v.browser_download_url
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if needs_update and not download_url then
|
||||
return {
|
||||
code = 1,
|
||||
now_version = now_version,
|
||||
version = remote_version,
|
||||
html_url = html_url,
|
||||
error = i18n.translate("New version found, but failed to get new version download url.")
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
code = 0,
|
||||
update = needs_update,
|
||||
now_version = now_version,
|
||||
version = remote_version,
|
||||
url = {html = html_url, download = download_url}
|
||||
}
|
||||
end
|
||||
|
||||
function to_download(url)
|
||||
local app_path = api.get_kcptun_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Kcptun")
|
||||
}
|
||||
end
|
||||
if not url or url == "" then
|
||||
return {code = 1, error = i18n.translate("Download url is required.")}
|
||||
end
|
||||
|
||||
sys.call("/bin/rm -f /tmp/kcptun_download.*")
|
||||
|
||||
local tmp_file = util.trim(util.exec("mktemp -u -t kcptun_download.XXXXXX"))
|
||||
|
||||
local result = api.exec(api.curl, {api._unpack(api.curl_args), "-o", tmp_file, url}, nil, api.command_timeout) == 0
|
||||
|
||||
if not result then
|
||||
api.exec("/bin/rm", {"-f", tmp_file})
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("File download failed or timed out: %s", url)
|
||||
}
|
||||
end
|
||||
|
||||
return {code = 0, file = tmp_file}
|
||||
end
|
||||
|
||||
function to_extract(file, subfix)
|
||||
local app_path = api.get_kcptun_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Kcptun")
|
||||
}
|
||||
end
|
||||
if not file or file == "" or not fs.access(file) then
|
||||
return {code = 1, error = i18n.translate("File path required.")}
|
||||
end
|
||||
|
||||
sys.call("/bin/rm -rf /tmp/kcptun_extract.*")
|
||||
local tmp_dir = util.trim(util.exec("mktemp -d -t kcptun_extract.XXXXXX"))
|
||||
|
||||
local output = {}
|
||||
api.exec("/bin/tar", {"-C", tmp_dir, "-zxvf", file},
|
||||
function(chunk) output[#output + 1] = chunk end)
|
||||
|
||||
local files = util.split(table.concat(output))
|
||||
|
||||
api.exec("/bin/rm", {"-f", file})
|
||||
|
||||
local new_file = nil
|
||||
for _, f in pairs(files) do
|
||||
if f:match("client_linux_%s" % subfix) then
|
||||
new_file = tmp_dir .. "/" .. util.trim(f)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if not new_file then
|
||||
for _, f in pairs(files) do
|
||||
if f:match("client_") then
|
||||
new_file = tmp_dir .. "/" .. util.trim(f)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if not new_file then
|
||||
api.exec("/bin/rm", {"-rf", tmp_dir})
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("Can't find client in file: %s", file)
|
||||
}
|
||||
end
|
||||
|
||||
return {code = 0, file = new_file}
|
||||
end
|
||||
|
||||
function to_move(file)
|
||||
local app_path = api.get_kcptun_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Kcptun")
|
||||
}
|
||||
end
|
||||
if not file or file == "" or not fs.access(file) then
|
||||
sys.call("/bin/rm -rf /tmp/kcptun_extract.*")
|
||||
return {code = 1, error = i18n.translate("Client file is required.")}
|
||||
end
|
||||
|
||||
local new_version = api.get_kcptun_version(file)
|
||||
if new_version == "" then
|
||||
sys.call("/bin/rm -rf /tmp/kcptun_extract.*")
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("The client file is not suitable for current device.")
|
||||
}
|
||||
end
|
||||
|
||||
local app_path_bak
|
||||
|
||||
if fs.access(app_path) then
|
||||
app_path_bak = app_path .. ".bak"
|
||||
api.exec("/bin/mv", {"-f", app_path, app_path_bak})
|
||||
end
|
||||
|
||||
local result = api.exec("/bin/mv", {"-f", file, app_path}, nil, api.command_timeout) == 0
|
||||
|
||||
if not result or not fs.access(app_path) then
|
||||
sys.call("/bin/rm -rf /tmp/kcptun_extract.*")
|
||||
if app_path_bak then
|
||||
api.exec("/bin/mv", {"-f", app_path_bak, app_path})
|
||||
end
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("Can't move new file to path: %s", app_path)
|
||||
}
|
||||
end
|
||||
|
||||
api.exec("/bin/chmod", {"755", app_path})
|
||||
|
||||
if app_path_bak then api.exec("/bin/rm", {"-f", app_path_bak}) end
|
||||
|
||||
sys.call("/bin/rm -rf /tmp/kcptun_extract.*")
|
||||
|
||||
return {code = 0}
|
||||
end
|
@ -1,20 +0,0 @@
|
||||
local fs=require "nixio.fs"
|
||||
|
||||
f=SimpleForm("logview")
|
||||
f.reset=false
|
||||
f.submit=false
|
||||
t=f:field(TextValue,"conf")
|
||||
t.rmempty=true
|
||||
t.rows=20
|
||||
function t.cfgvalue()
|
||||
if nixio.fs.access("/var/log/bypass.log") then
|
||||
local logs = luci.util.execi("cat /var/log/bypass.log")
|
||||
local s = ""
|
||||
for line in logs do
|
||||
s = line .. "\n" .. s
|
||||
end
|
||||
return s
|
||||
end
|
||||
end
|
||||
t.readonly = "readonly"
|
||||
return f
|
@ -1,154 +0,0 @@
|
||||
-- Copyright (C) 2017 yushi studio <ywb94@qq.com>
|
||||
-- Licensed to the public under the GNU General Public License v3.
|
||||
require "luci.http"
|
||||
require "luci.dispatcher"
|
||||
require "nixio.fs"
|
||||
|
||||
local m, s, o
|
||||
local sid = arg[1]
|
||||
|
||||
local encrypt_methods = {
|
||||
"rc4-md5",
|
||||
"rc4-md5-6",
|
||||
"rc4",
|
||||
"table",
|
||||
"aes-128-cfb",
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"aes-128-ctr",
|
||||
"aes-192-ctr",
|
||||
"aes-256-ctr",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"cast5-cfb",
|
||||
"des-cfb",
|
||||
"idea-cfb",
|
||||
"rc2-cfb",
|
||||
"seed-cfb",
|
||||
"salsa20",
|
||||
"chacha20",
|
||||
"chacha20-ietf"
|
||||
}
|
||||
|
||||
local encrypt_methods_ss = {
|
||||
-- aead
|
||||
"aes-128-gcm",
|
||||
"aes-192-gcm",
|
||||
"aes-256-gcm",
|
||||
"chacha20-ietf-poly1305",
|
||||
"xchacha20-ietf-poly1305",
|
||||
-- aead 2022
|
||||
"2022-blake3-aes-128-gcm",
|
||||
"2022-blake3-aes-256-gcm",
|
||||
"2022-blake3-chacha20-poly1305"
|
||||
--[[ stream
|
||||
"table",
|
||||
"rc4",
|
||||
"rc4-md5",
|
||||
"aes-128-cfb",
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"aes-128-ctr",
|
||||
"aes-192-ctr",
|
||||
"aes-256-ctr",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"salsa20",
|
||||
"chacha20",
|
||||
"chacha20-ietf" ]]
|
||||
}
|
||||
|
||||
local protocol = {"origin"}
|
||||
|
||||
obfs = {"plain", "http_simple", "http_post"}
|
||||
|
||||
m = Map("bypass", translate("Edit Server"))
|
||||
|
||||
m.redirect = luci.dispatcher.build_url("admin/services/bypass/server")
|
||||
if m.uci:get("bypass", sid) ~= "server_config" then
|
||||
luci.http.redirect(m.redirect)
|
||||
return
|
||||
end
|
||||
|
||||
-- [[ Server Setting ]]--
|
||||
s = m:section(NamedSection, sid, "server_config")
|
||||
s.anonymous = true
|
||||
s.addremove = false
|
||||
|
||||
o = s:option(Flag, "enable", translate("Enable"))
|
||||
o.default = 1
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "type", translate("Server Type"))
|
||||
o:value("socks5", translate("Socks5"))
|
||||
if nixio.fs.access("/usr/bin/ssserver") or nixio.fs.access("/usr/bin/ss-server") then
|
||||
o:value("ss", translate("Shadowsocks"))
|
||||
end
|
||||
if nixio.fs.access("/usr/bin/ssr-server") then
|
||||
o:value("ssr", translate("ShadowsocksR"))
|
||||
end
|
||||
o.default = "socks5"
|
||||
|
||||
o = s:option(Value, "server_port", translate("Server Port"))
|
||||
o.datatype = "port"
|
||||
math.randomseed(tostring(os.time()):reverse():sub(1, 7))
|
||||
o.default = math.random(10240, 20480)
|
||||
o.rmempty = false
|
||||
o.description = translate("warning! Please do not reuse the port!")
|
||||
|
||||
o = s:option(Value, "timeout", translate("Connection Timeout"))
|
||||
o.datatype = "uinteger"
|
||||
o.default = 60
|
||||
o.rmempty = false
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(Value, "username", translate("Username"))
|
||||
o.rmempty = false
|
||||
o:depends("type", "socks5")
|
||||
|
||||
o = s:option(Value, "password", translate("Password"))
|
||||
o.password = true
|
||||
o.rmempty = false
|
||||
|
||||
o = s:option(ListValue, "encrypt_method", translate("Encrypt Method"))
|
||||
for _, v in ipairs(encrypt_methods) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = false
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(ListValue, "encrypt_method_ss", translate("Encrypt Method"))
|
||||
for _, v in ipairs(encrypt_methods_ss) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = false
|
||||
o:depends("type", "ss")
|
||||
|
||||
o = s:option(ListValue, "protocol", translate("Protocol"))
|
||||
for _, v in ipairs(protocol) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = false
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(ListValue, "obfs", translate("Obfs"))
|
||||
for _, v in ipairs(obfs) do
|
||||
o:value(v)
|
||||
end
|
||||
o.rmempty = false
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(Value, "obfs_param", translate("Obfs param(optional)"))
|
||||
o:depends("type", "ssr")
|
||||
|
||||
o = s:option(Flag, "fast_open", translate("TCP Fast Open"))
|
||||
o.rmempty = false
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "ssr")
|
||||
|
||||
return m
|
@ -1,71 +0,0 @@
|
||||
local m,s,o
|
||||
|
||||
m=Map("bypass")
|
||||
s=m:section(TypedSection,"server_global",translate("Global Setting"))
|
||||
s.anonymous=true
|
||||
|
||||
o=s:option(Flag,"enable_server",translate("Enable Server"))
|
||||
|
||||
s=m:section(TypedSection,"server_config",translate("Server Setting"))
|
||||
s.anonymous=true
|
||||
s.addremove=true
|
||||
s.template="cbi/tblsection"
|
||||
s.extedit=luci.dispatcher.build_url("admin/services/bypass/server/%s")
|
||||
function s.create(...)
|
||||
local sid=TypedSection.create(...)
|
||||
if sid then
|
||||
luci.http.redirect(s.extedit%sid)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
o=s:option(Flag,"enable",translate("Enable"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or translate("0")
|
||||
end
|
||||
o.rmempty=false
|
||||
|
||||
o=s:option(DummyValue,"type",translate("Server Type"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"server_port",translate("Server Port"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"username",translate("Username"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"encrypt_method_ss",translate("Encrypt Method (SS)"))
|
||||
function o.cfgvalue(...)
|
||||
local v=Value.cfgvalue(...)
|
||||
return v and v:upper() or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"plugin",translate("Plugin (SS)"))
|
||||
function o.cfgvalue(...)
|
||||
local v=Value.cfgvalue(...)
|
||||
return v and v:upper() or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"encrypt_method",translate("Encrypt Method"))
|
||||
function o.cfgvalue(...)
|
||||
local v=Value.cfgvalue(...)
|
||||
return v and v:upper() or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"protocol",translate("Protocol"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "-"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"obfs",translate("Obfs"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "-"
|
||||
end
|
||||
|
||||
return m
|
@ -1,126 +0,0 @@
|
||||
local m,s,o
|
||||
local bypass="bypass"
|
||||
local uci=luci.model.uci.cursor()
|
||||
local server_count=0
|
||||
|
||||
uci:foreach(bypass,"servers",function(s)
|
||||
server_count=server_count+1
|
||||
end)
|
||||
|
||||
m=Map(bypass,translate("Servers subscription and manage"),translate("Support SS/SSR/XRAY/TROJAN/NAIVEPROXY/SOCKS5/TUN etc."))
|
||||
s=m:section(TypedSection,"server_subscribe")
|
||||
s.anonymous=true
|
||||
|
||||
o=s:option(Flag,"auto_update",translate("Auto Update"))
|
||||
o.rmempty=false
|
||||
o.description=translate("Auto Update Server subscription,GFW list and CHN route")
|
||||
|
||||
o=s:option(ListValue,"auto_update_time",translate("Update time (every day)"))
|
||||
for t=0,23 do
|
||||
o:value(t,t..":00")
|
||||
end
|
||||
o.default=2
|
||||
o.rmempty=false
|
||||
|
||||
o=s:option(DynamicList,"subscribe_url",translate("Subscribe URL"))
|
||||
o.rmempty=true
|
||||
|
||||
o = s:option(Value, "filter_words", translate("Subscribe Filter Words"))
|
||||
o.rmempty = true
|
||||
o.description = translate("Filter Words splited by /")
|
||||
|
||||
o = s:option(Value, "save_words", translate("Subscribe Save Words"))
|
||||
o.rmempty = true
|
||||
o.description = translate("Save Words splited by /")
|
||||
|
||||
o=s:option(Button,"update_Sub",translate("Update Subscribe List"))
|
||||
o.inputstyle="reload"
|
||||
o.description=translate("Update subscribe url list first")
|
||||
o.write=function()
|
||||
uci:commit(bypass)
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin","services",bypass,"servers"))
|
||||
end
|
||||
|
||||
o=s:option(Flag,"switch",translate("Subscribe Default Auto-Switch"))
|
||||
o.rmempty=false
|
||||
o.description=translate("Subscribe new add server default Auto-Switch on")
|
||||
o.default=0
|
||||
|
||||
o=s:option(Flag,"proxy",translate("Through proxy update"))
|
||||
o.rmempty=false
|
||||
o.description=translate("Through proxy update list,Not Recommended")
|
||||
|
||||
o=s:option(Button,"subscribe",translate("Update All Subscribe Severs"))
|
||||
o.rawhtml=true
|
||||
o.template="bypass/subscribe"
|
||||
|
||||
o=s:option(Button,"delete",translate("Delete All Subscribe Severs"))
|
||||
o.inputstyle="reset"
|
||||
o.description=string.format(translate("Server Count")..": %d",server_count)
|
||||
o.write=function()
|
||||
uci:delete_all(bypass,"servers",function(s)
|
||||
if s.hashkey or s.isSubscribe then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end)
|
||||
uci:commit(bypass)
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin","services",bypass,"servers"))
|
||||
end
|
||||
|
||||
s=m:section(TypedSection,"servers")
|
||||
s.anonymous=true
|
||||
s.addremove=true
|
||||
s.template="cbi/tblsection"
|
||||
s.sortable=true
|
||||
s.extedit=luci.dispatcher.build_url("admin","services",bypass,"servers","%s")
|
||||
function s.create(...)
|
||||
local sid=TypedSection.create(...)
|
||||
if sid then
|
||||
uci:set(bypass,sid,'switch_enable',1)
|
||||
luci.http.redirect(s.extedit%sid)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"type",translate("Type"))
|
||||
function o.cfgvalue(...)
|
||||
return (Value.cfgvalue(...)=="vless") and "VLESS" or Value.cfgvalue(...)
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"alias",translate("Alias"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or translate("None")
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"server_port",translate("Server Port"))
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or "N/A"
|
||||
end
|
||||
|
||||
o=s:option(DummyValue,"server_port",translate("Socket Connected"))
|
||||
o.template="bypass/socket"
|
||||
o.width="10%"
|
||||
|
||||
o=s:option(DummyValue,"server",translate("TCPing Latency"))
|
||||
o.template="bypass/ping"
|
||||
o.width="10%"
|
||||
|
||||
o=s:option(Button,"apply_node",translate("Apply"))
|
||||
o.inputstyle="apply"
|
||||
o.write=function(self,section)
|
||||
uci:set(bypass,'@global[0]','global_server',section)
|
||||
uci:commit(bypass)
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin","services",bypass,"base"))
|
||||
end
|
||||
|
||||
o=s:option(Flag,"switch_enable",translate("Auto Switch"))
|
||||
o.rmempty=false
|
||||
function o.cfgvalue(...)
|
||||
return Value.cfgvalue(...) or 1
|
||||
end
|
||||
|
||||
m:append(Template("bypass/server_list"))
|
||||
|
||||
return m
|
@ -1,175 +0,0 @@
|
||||
module("luci.model.cbi.bypass.xray", package.seeall)
|
||||
local fs = require "nixio.fs"
|
||||
local sys = require "luci.sys"
|
||||
local util = require "luci.util"
|
||||
local i18n = require "luci.i18n"
|
||||
local api = require "luci.model.cbi.bypass.api"
|
||||
|
||||
local xray_api = "https://api.github.com/repos/XTLS/Xray-core/releases?per_page=1"
|
||||
local is_armv7 = false
|
||||
|
||||
function to_check(arch)
|
||||
local app_path = api.get_xray_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Xray")
|
||||
}
|
||||
end
|
||||
if not arch or arch == "" then arch = api.auto_get_arch() end
|
||||
|
||||
local file_tree, sub_version = api.get_file_info(arch)
|
||||
|
||||
if file_tree == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("Can't determine ARCH, or ARCH not supported.")
|
||||
}
|
||||
end
|
||||
|
||||
if file_tree == "amd64" then file_tree = "64" end
|
||||
if file_tree == "386" then file_tree = "32" end
|
||||
if file_tree == "mipsle" then file_tree = "mips32le" end
|
||||
if file_tree == "mips" then file_tree = "mips32" end
|
||||
if file_tree == "arm" then file_tree = "arm32" end
|
||||
|
||||
local json = api.get_api_json(xray_api)
|
||||
|
||||
if #json > 0 then
|
||||
json = json[1]
|
||||
end
|
||||
|
||||
if json.tag_name == nil then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("Get remote version info failed.")
|
||||
}
|
||||
end
|
||||
|
||||
local now_version = api.get_xray_version()
|
||||
local remote_version = json.tag_name
|
||||
local needs_update = api.compare_versions(now_version:match("[^v]+"), "<", remote_version:match("[^v]+"))
|
||||
local html_url, download_url
|
||||
|
||||
if needs_update then
|
||||
html_url = json.html_url
|
||||
for _, v in ipairs(json.assets) do
|
||||
if v.name and v.name:match("linux%-" .. file_tree .. (sub_version ~= "" and ".+" .. sub_version or "")) then
|
||||
download_url = v.browser_download_url
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if needs_update and not download_url then
|
||||
return {
|
||||
code = 1,
|
||||
now_version = now_version,
|
||||
version = remote_version,
|
||||
html_url = html_url,
|
||||
error = i18n.translate("New version found, but failed to get new version download url.")
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
code = 0,
|
||||
update = needs_update,
|
||||
now_version = now_version,
|
||||
version = remote_version,
|
||||
url = {html = html_url, download = download_url}
|
||||
}
|
||||
end
|
||||
|
||||
function to_download(url)
|
||||
local app_path = api.get_xray_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Xray")
|
||||
}
|
||||
end
|
||||
if not url or url == "" then
|
||||
return {code = 1, error = i18n.translate("Download url is required.")}
|
||||
end
|
||||
|
||||
sys.call("/bin/rm -f /tmp/xray_download.*")
|
||||
|
||||
local tmp_file = util.trim(util.exec("mktemp -u -t xray_download.XXXXXX"))
|
||||
|
||||
local result = api.exec(api.curl, {api._unpack(api.curl_args), "-o", tmp_file, url}, nil, api.command_timeout) == 0
|
||||
|
||||
if not result then
|
||||
api.exec("/bin/rm", {"-f", tmp_file})
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("File download failed or timed out: %s", url)
|
||||
}
|
||||
end
|
||||
|
||||
return {code = 0, file = tmp_file}
|
||||
end
|
||||
|
||||
function to_extract(file, subfix)
|
||||
local app_path = api.get_xray_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Xray")
|
||||
}
|
||||
end
|
||||
|
||||
if not file or file == "" or not fs.access(file) then
|
||||
return {code = 1, error = i18n.translate("File path required.")}
|
||||
end
|
||||
|
||||
if sys.exec("echo -n $(opkg list-installed | grep -c unzip)") ~= "1" then
|
||||
api.exec("/bin/rm", {"-f", file})
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translate("Not installed unzip, Can't unzip!")
|
||||
}
|
||||
end
|
||||
|
||||
sys.call("/bin/rm -rf /tmp/xray_extract.*")
|
||||
local tmp_dir = util.trim(util.exec("mktemp -d -t xray_extract.XXXXXX"))
|
||||
|
||||
local output = {}
|
||||
api.exec("/usr/bin/unzip", {"-o", file, "-d", tmp_dir},
|
||||
function(chunk) output[#output + 1] = chunk end)
|
||||
|
||||
local files = util.split(table.concat(output))
|
||||
|
||||
api.exec("/bin/rm", {"-f", file})
|
||||
|
||||
return {code = 0, file = tmp_dir}
|
||||
end
|
||||
|
||||
function to_move(file)
|
||||
local app_path = api.get_xray_path() or ""
|
||||
if app_path == "" then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("You did not fill in the %s path. Please save and apply then update manually.", "Xray")
|
||||
}
|
||||
end
|
||||
if not file or file == "" then
|
||||
sys.call("/bin/rm -rf /tmp/xray_extract.*")
|
||||
return {code = 1, error = i18n.translate("Client file is required.")}
|
||||
end
|
||||
|
||||
sys.call("/etc/init.d/bypass stop")
|
||||
local result = nil
|
||||
result = api.exec("/bin/mv", { "-f", file .. "/xray", app_path }, nil, api.command_timeout) == 0
|
||||
sys.call("/bin/rm -rf /tmp/xray_extract.*")
|
||||
if not result or not fs.access(app_path) then
|
||||
return {
|
||||
code = 1,
|
||||
error = i18n.translatef("Can't move new file to path: %s", app_path)
|
||||
}
|
||||
end
|
||||
|
||||
api.chmod_755(app_path)
|
||||
sys.call("/etc/init.d/bypass restart >/dev/null 2>&1 &")
|
||||
|
||||
return {code = 0}
|
||||
end
|
@ -1,4 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<input class="cbi-input-file" style="width: 400px" type="file" id="ulfile" name="ulfile"/>
|
||||
<input type="submit" class="cbi-button cbi-input-apply" name="upload" value="<%:Upload%>"/>
|
||||
<%+cbi/valuefooter%>
|
@ -1,30 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
function check_connect(btn,urlname)
|
||||
{
|
||||
btn.disabled=true;
|
||||
btn.value='<%:Check...%>';
|
||||
murl=urlname;
|
||||
XHR.get('<%=luci.dispatcher.build_url("admin","services","bypass","check")%>',
|
||||
{set:murl},
|
||||
function(x,rv)
|
||||
{
|
||||
var s=document.getElementById(urlname+'-status');
|
||||
if (s)
|
||||
{
|
||||
if (rv.ret=="0")
|
||||
s.innerHTML="<font color='green'>"+"<%:Connect OK%>"+"</font>";
|
||||
else
|
||||
s.innerHTML="<font color='red'>"+"<%:Connect Error%>"+"</font>";
|
||||
}
|
||||
btn.disabled=false;
|
||||
btn.value='<%:Check Connect%>';
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
//]]></script>
|
||||
<input type="button" class="cbi-button cbi-button-apply" value="<%:Check Connect%>" onclick="return check_connect(this,'<%=self.option%>')"/>
|
||||
<span id="<%=self.option%>-status"><em><%=self.value%></em></span>
|
||||
|
||||
<%+cbi/valuefooter%>
|
@ -1,26 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
function check_port(btn)
|
||||
{
|
||||
btn.disabled=true;
|
||||
btn.value='<%:Check...%>';
|
||||
XHR.get('<%=luci.dispatcher.build_url("admin","services","bypass","checkport")%>',
|
||||
null,
|
||||
function(x,rv)
|
||||
{
|
||||
var s=document.getElementById('<%=self.option%>-status');
|
||||
if (s)
|
||||
{
|
||||
s.innerHTML=rv.ret;
|
||||
}
|
||||
btn.disabled=false;
|
||||
btn.value='<%:Check Server%>';
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
//]]></script>
|
||||
<input type="button" class="cbi-button cbi-button-apply" value="<%:Check Server%>" onclick="return check_port(this)"/>
|
||||
<span id="<%=self.option%>-status"><em><%=self.value%></em></span>
|
||||
<%+cbi/valuefooter%>
|
@ -1,172 +0,0 @@
|
||||
<%
|
||||
local kcptun_version = require "luci.model.cbi.bypass.api".get_kcptun_version()
|
||||
-%>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var kcptunInfo;
|
||||
var tokenStr = '<%=token%>';
|
||||
var manuallyUpdateText = '<%:Check update%>';
|
||||
var noUpdateText = '<%:It is the latest version%>';
|
||||
var updateSuccessText = '<%:Update successful%>';
|
||||
var clickToUpdateText = '<%:Click to update%>';
|
||||
var inProgressText = '<%:Updating...%>';
|
||||
var unexpectedErrorText = '<%:Unexpected error%>';
|
||||
var updateInProgressNotice = '<%:Updating, are you sure to close?%>';
|
||||
var downloadingText = '<%:Downloading...%>';
|
||||
var decompressioningText = '<%:Unpacking...%>';
|
||||
var movingText = '<%:Moving...%>';
|
||||
|
||||
window.onload = function() {
|
||||
var kcptunCheckBtn = document.getElementById('_kcptun-check_btn');
|
||||
var kcptunDetailElm = document.getElementById('_kcptun-check_btn-detail');
|
||||
};
|
||||
|
||||
function addPageNotice_kcptun() {
|
||||
window.onbeforeunload = function(e) {
|
||||
e.returnValue = updateInProgressNotice;
|
||||
return updateInProgressNotice;
|
||||
};
|
||||
}
|
||||
|
||||
function removePageNotice_kcptun() {
|
||||
window.onbeforeunload = undefined;
|
||||
}
|
||||
|
||||
function onUpdateSuccess_kcptun(btn) {
|
||||
alert(updateSuccessText);
|
||||
|
||||
if(btn) {
|
||||
btn.value = updateSuccessText;
|
||||
btn.placeholder = updateSuccessText;
|
||||
btn.disabled = true;
|
||||
}
|
||||
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
function onRequestError_kcptun(btn, errorMessage) {
|
||||
btn.disabled = false;
|
||||
btn.value = manuallyUpdateText;
|
||||
|
||||
if(errorMessage) {
|
||||
alert(errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
function onBtnClick_kcptun(btn) {
|
||||
if(kcptunInfo === undefined) {
|
||||
checkUpdate_kcptun(btn);
|
||||
} else {
|
||||
doUpdate_kcptun(btn);
|
||||
}
|
||||
}
|
||||
|
||||
function checkUpdate_kcptun(btn) {
|
||||
btn.disabled = true;
|
||||
btn.value = inProgressText;
|
||||
|
||||
addPageNotice_kcptun();
|
||||
|
||||
var ckeckDetailElm = document.getElementById(btn.id + '-detail');
|
||||
|
||||
XHR.get('<%=url([[admin]], [[services]], [[bypass]], [[kcptun_check]])%>', {
|
||||
token: tokenStr,
|
||||
arch: ''
|
||||
}, function(x,json) {
|
||||
removePageNotice_kcptun();
|
||||
|
||||
if(json.code) {
|
||||
kcptunInfo = undefined;
|
||||
onRequestError_kcptun(btn, json.error);
|
||||
} else {
|
||||
if(json.update) {
|
||||
kcptunInfo = json;
|
||||
btn.disabled = false;
|
||||
btn.value = clickToUpdateText;
|
||||
btn.placeholder = clickToUpdateText;
|
||||
|
||||
if(ckeckDetailElm) {
|
||||
var urlNode = '';
|
||||
if(json.version) {
|
||||
urlNode = '<em style="color:red;">最新版本号:' + json.version + '</em>';
|
||||
if(json.url && json.url.html) {
|
||||
urlNode = '<a href="' + json.url.html + '" target="_blank">' + urlNode + '</a>';
|
||||
}
|
||||
}
|
||||
ckeckDetailElm.innerHTML = urlNode;
|
||||
}
|
||||
} else {
|
||||
btn.disabled = true;
|
||||
btn.value = noUpdateText;
|
||||
}
|
||||
}
|
||||
},300);
|
||||
}
|
||||
|
||||
function doUpdate_kcptun(btn) {
|
||||
btn.disabled = true;
|
||||
btn.value = downloadingText;
|
||||
|
||||
addPageNotice_kcptun();
|
||||
|
||||
var kcptunUpdateUrl = '<%=url([[admin]], [[services]], [[bypass]], [[kcptun_update]])%>';
|
||||
// Download file
|
||||
XHR.get(kcptunUpdateUrl, {
|
||||
token: tokenStr,
|
||||
url: kcptunInfo ? kcptunInfo.url.download : ''
|
||||
}, function(x,json) {
|
||||
if(json.code) {
|
||||
removePageNotice_kcptun();
|
||||
onRequestError_kcptun(btn, json.error);
|
||||
} else {
|
||||
btn.value = decompressioningText;
|
||||
|
||||
// Extract file
|
||||
XHR.get(kcptunUpdateUrl, {
|
||||
token: tokenStr,
|
||||
task: 'extract',
|
||||
file: json.file,
|
||||
subfix: kcptunInfo ? kcptunInfo.type : ''
|
||||
}, function(x,json) {
|
||||
if(json.code) {
|
||||
removePageNotice_kcptun();
|
||||
onRequestError_kcptun(btn, json.error);
|
||||
} else {
|
||||
btn.value = movingText;
|
||||
|
||||
// Move file to target dir
|
||||
XHR.get(kcptunUpdateUrl, {
|
||||
token: tokenStr,
|
||||
task: 'move',
|
||||
file: json.file
|
||||
}, function(x,json) {
|
||||
removePageNotice_kcptun();
|
||||
if(json.code) {
|
||||
onRequestError_kcptun(btn, json.error);
|
||||
} else {
|
||||
onUpdateSuccess_kcptun(btn);
|
||||
}
|
||||
},300)
|
||||
}
|
||||
},300)
|
||||
}
|
||||
},300)
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<div class="cbi-value">
|
||||
<label class="cbi-value-title">Kcptun
|
||||
<%:Version%>
|
||||
</label>
|
||||
<div class="cbi-value-field">
|
||||
<div class="cbi-value-description">
|
||||
<span>【 <%=kcptun_version%> 】</span>
|
||||
<input class="cbi-button cbi-input-apply" type="button" id="_kcptun-check_btn" onclick="onBtnClick_kcptun(this);" value="<%:Check update%>" />
|
||||
<span id="_kcptun-check_btn-detail"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,3 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<span class="pingtime" hint="<%=self:cfgvalue(section)%>">-- ms</span>
|
||||
<%+cbi/valuefooter%>
|
@ -1,184 +0,0 @@
|
||||
<%#
|
||||
Copyright 2018-2019 Lienol <lawlienol@gmail.com>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
<%
|
||||
local dsp=require "luci.dispatcher"
|
||||
-%>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
window.addEventListener('load',function(){
|
||||
const doms=document.getElementsByClassName('pingtime');
|
||||
const ports=document.getElementsByClassName("socket-connected")
|
||||
const xhr=(index) =>{
|
||||
return new Promise((res) =>{
|
||||
const dom=doms[index];
|
||||
const port=ports[index];
|
||||
if (!dom) res()
|
||||
port.innerHTML='<font color="#0072c3"><%:connecting%></font>';
|
||||
XHR.get('<%=dsp.build_url("admin/services/bypass/ping")%>',{
|
||||
index,
|
||||
domain: dom.getAttribute("hint"),
|
||||
port: port.getAttribute("hint")
|
||||
},
|
||||
(x,result) =>{
|
||||
let col='#ff0000';
|
||||
if (result.ping){
|
||||
if (result.ping < 300) col='#ff3300';
|
||||
if (result.ping < 200) col='#ff7700';
|
||||
if (result.ping < 100) col='#249400';
|
||||
}
|
||||
dom.innerHTML=`<font color="${col}">${(result.ping ? result.ping : "--") + " ms"}</font>`
|
||||
if (result.socket){
|
||||
port.innerHTML='<font color="#249400"><%:ok%></font>';
|
||||
} else{
|
||||
port.innerHTML='<font color="#ff0000"><%:fail%></font>';
|
||||
}
|
||||
res();
|
||||
});
|
||||
})
|
||||
}
|
||||
let task=-1;
|
||||
const thread=() =>{
|
||||
task=task + 1
|
||||
if (doms[task]){
|
||||
xhr(task).then(thread);
|
||||
}
|
||||
}
|
||||
|
||||
for (let i=0; i < 20; i++){
|
||||
thread()
|
||||
}
|
||||
})
|
||||
|
||||
function cbi_row_drop(fromId,toId,store,isToBottom){
|
||||
var fromNode=document.getElementById(fromId);
|
||||
var toNode=document.getElementById(toId);
|
||||
if (!fromNode || !toNode) return false;
|
||||
|
||||
var table=fromNode.parentNode;
|
||||
while (table && table.nodeName.toLowerCase() != "table")
|
||||
table=table.parentNode;
|
||||
if (!table) return false;
|
||||
|
||||
var ids=[];
|
||||
if (isToBottom){
|
||||
toNode.parentNode.appendChild(fromNode);
|
||||
} else{
|
||||
fromNode.parentNode.insertBefore(fromNode,toNode);
|
||||
}
|
||||
|
||||
for (var idx=2; idx < table.rows.length; idx++){
|
||||
table.rows[idx].className=table.rows[idx].className.replace(
|
||||
/cbi-rowstyle-[12]/,
|
||||
"cbi-rowstyle-" + (1 + (idx % 2))
|
||||
);
|
||||
|
||||
if (table.rows[idx].id && table.rows[idx].id.match(/-([^\-]+)$/))
|
||||
ids.push(RegExp.$1);
|
||||
}
|
||||
|
||||
var input=document.getElementById(store);
|
||||
if (input) input.value=ids.join(" ");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// set tr draggable
|
||||
function enableDragForTable(table_selecter,store){
|
||||
var trs=document.querySelectorAll(table_selecter + " tr");
|
||||
if (!trs || trs.length.length < 3){
|
||||
return;
|
||||
}
|
||||
|
||||
function ondragstart(ev){
|
||||
ev.dataTransfer.setData("Text",ev.target.id);
|
||||
}
|
||||
|
||||
function ondrop(ev){
|
||||
var from=ev.dataTransfer.getData("Text");
|
||||
cbi_row_drop(from,this.id,store);
|
||||
}
|
||||
|
||||
function ondragover(ev){
|
||||
ev.preventDefault();
|
||||
ev.dataTransfer.dropEffect="move";
|
||||
}
|
||||
|
||||
function moveToTop(id){
|
||||
var top=document.querySelectorAll(table_selecter + " tr")[2];
|
||||
cbi_row_drop(id,top.id,store);
|
||||
}
|
||||
|
||||
function moveToBottom(id){
|
||||
console.log('moveToBottom:',id);
|
||||
var trList=document.querySelectorAll(table_selecter + " tr");
|
||||
var bottom=trList[trList.length - 1];
|
||||
cbi_row_drop(id,bottom.id,store,true);
|
||||
}
|
||||
|
||||
for (let index=2; index < trs.length; index++){
|
||||
const el=trs[index];
|
||||
el.setAttribute("draggable",true);
|
||||
el.ondragstart=ondragstart;
|
||||
el.ondrop=ondrop;
|
||||
el.ondragover=ondragover;
|
||||
|
||||
// reset the behaviors of the btns
|
||||
var upBtns=el.querySelectorAll(".cbi-button.cbi-button-up");
|
||||
if (upBtns && upBtns.length > 0){
|
||||
upBtns.forEach(function (_el){
|
||||
_el.onclick=function (){
|
||||
moveToTop(el.id);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
var downBtns=el.querySelectorAll(".cbi-button.cbi-button-down");
|
||||
if (downBtns && downBtns.length > 0){
|
||||
downBtns.forEach(function (_el){
|
||||
_el.onclick=function (){
|
||||
moveToBottom(el.id);
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// enable
|
||||
enableDragForTable(
|
||||
"#cbi-bypass-servers table",
|
||||
"cbi.sts.bypass.servers"
|
||||
);
|
||||
|
||||
function _cbi_row_top(id) {
|
||||
var dom = document.getElementById("cbi-bypass-" + id);
|
||||
if (dom) {
|
||||
var trs = document.getElementById("cbi-bypass-servers").getElementsByClassName("cbi-section-table-row");
|
||||
if (trs && trs.length > 0) {
|
||||
for (var i = 0; i < trs.length; i++) {
|
||||
var up = dom.getElementsByClassName("cbi-button-up");
|
||||
if (up) {
|
||||
cbi_row_swap(up[0], true, 'cbi.sts.bypass.servers');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var edit_btn = document.getElementById("cbi-bypass-servers").getElementsByClassName("cbi-button cbi-button-edit");
|
||||
for (var i = 0; i < edit_btn.length; i++) {
|
||||
try {
|
||||
var onclick_str = edit_btn[i].getAttribute("onclick");
|
||||
var id = onclick_str.substring(onclick_str.lastIndexOf('/') + 1, onclick_str.length - 1);
|
||||
var td = edit_btn[i].parentNode;
|
||||
var new_div = "";
|
||||
//添加"置顶"按钮
|
||||
new_div += '<input class="cbi-button" type="button" value="<%:To Top%>" onclick="_cbi_row_top(\'' + id + '\')"/> ';
|
||||
td.innerHTML = new_div + td.innerHTML;
|
||||
}
|
||||
catch(err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
</script>
|
@ -1,3 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<span class="socket-connected" hint="<%=self:cfgvalue(section)%>">wait</span>
|
||||
<%+cbi/valuefooter%>
|
@ -1,370 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function padright(str, cnt, pad) {
|
||||
return str + Array(cnt + 1).join(pad);
|
||||
}
|
||||
|
||||
function b64EncodeUnicode(str) {
|
||||
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {
|
||||
return String.fromCharCode('0x' + p1);
|
||||
}));
|
||||
}
|
||||
|
||||
function b64encutf8safe(str) {
|
||||
return b64EncodeUnicode(str).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, '');
|
||||
}
|
||||
|
||||
function b64DecodeUnicode(str) {
|
||||
return decodeURIComponent(Array.prototype.map.call(atob(str), function (c) {
|
||||
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
||||
}).join(''));
|
||||
}
|
||||
|
||||
function b64decutf8safe(str) {
|
||||
var l;
|
||||
str = str.replace(/-/g, "+").replace(/_/g, "/");
|
||||
l = str.length;
|
||||
l = (4 - l % 4) % 4;
|
||||
if (l) str = padright(str, l, "=");
|
||||
return b64DecodeUnicode(str);
|
||||
}
|
||||
|
||||
function b64encsafe(str) {
|
||||
return btoa(str).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, '')
|
||||
}
|
||||
|
||||
function b64decsafe(str) {
|
||||
var l;
|
||||
str = str.replace(/-/g, "+").replace(/_/g, "/");
|
||||
l = str.length;
|
||||
l = (4 - l % 4) % 4;
|
||||
if (l) str = padright(str, l, "=");
|
||||
return atob(str);
|
||||
}
|
||||
|
||||
function dictvalue(d, key) {
|
||||
var v = d[key];
|
||||
if (typeof (v) == 'undefined' || v == '') return '';
|
||||
return b64decsafe(v);
|
||||
}
|
||||
|
||||
function export_ssr_url(btn, urlname, sid) {
|
||||
var s = document.getElementById(urlname + '-status');
|
||||
if (!s) return false;
|
||||
var v_server = document.getElementsByName('cbid.bypass.' + sid + '.server')[0];
|
||||
var v_port = document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0];
|
||||
var v_protocol = document.getElementsByName('cbid.bypass.' + sid + '.protocol')[0];
|
||||
var v_method = document.getElementsByName('cbid.bypass.' + sid + '.encrypt_method')[0];
|
||||
var v_obfs = document.getElementsByName('cbid.bypass.' + sid + '.obfs')[0];
|
||||
var v_password = document.getElementsByName('cbid.bypass.' + sid + '.password')[0];
|
||||
var v_obfs_param = document.getElementsByName('cbid.bypass.' + sid + '.obfs_param')[0];
|
||||
var v_protocol_param = document.getElementsByName('cbid.bypass.' + sid + '.protocol_param')[0];
|
||||
var v_alias = document.getElementsByName('cbid.bypass.' + sid + '.alias')[0];
|
||||
var ssr_str = v_server.value + ":" + v_port.value + ":" + v_protocol.value + ":" + v_method.value + ":" + v_obfs.value + ":" + b64encsafe(v_password.value) + "/?obfsparam=" + b64encsafe(v_obfs_param.value) + "&protoparam=" + b64encsafe(v_protocol_param.value) + "&remarks=" + b64encutf8safe(v_alias.value);
|
||||
var textarea = document.createElement("textarea");
|
||||
textarea.textContent = "ssr://" + b64encsafe(ssr_str);
|
||||
textarea.style.position = "fixed";
|
||||
document.body.appendChild(textarea);
|
||||
textarea.select();
|
||||
try {
|
||||
document.execCommand("copy"); // Security exception may be thrown by some browsers.
|
||||
s.innerHTML = "<font color='green'><%:Copy SSR to clipboard successfully.%></font>";
|
||||
} catch (ex) {
|
||||
s.innerHTML = "<font color='red'><%:Unable to copy SSR to clipboard.%></font>";
|
||||
} finally {
|
||||
document.body.removeChild(textarea);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function import_ssr_url(btn, urlname, sid) {
|
||||
var s = document.getElementById(urlname + '-status');
|
||||
if (!s) return false;
|
||||
var ssrurl = prompt("<%:Paste sharing link here%>", "");
|
||||
if (ssrurl == null || ssrurl == "") {
|
||||
s.innerHTML = "<font color='red'><%:User cancelled.%></font>";
|
||||
return false;
|
||||
}
|
||||
s.innerHTML = "";
|
||||
//var ssu = ssrurl.match(/ssr:\/\/([A-Za-z0-9_-]+)/i);
|
||||
var ssu = ssrurl.split('://');
|
||||
//console.log(ssu.length);
|
||||
var event = document.createEvent("HTMLEvents");
|
||||
event.initEvent("change", true, true);
|
||||
switch (ssu[0]) {
|
||||
case "hysteria":
|
||||
try {
|
||||
var url = new URL("http://" + ssu[1]);
|
||||
var params = url.searchParams;
|
||||
} catch(e) {
|
||||
alert(e);
|
||||
return false;
|
||||
}
|
||||
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = ssu[0];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = url.hostname;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = url.port || "80";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.hysteria_protocol')[0].value = params.get("protocol") || "udp";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.auth_type')[0].value = params.get("auth") ? "2" : "0";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.auth_type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.auth_payload')[0].value = params.get("auth") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.uplink_capacity')[0].value = params.get("upmbps") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.downlink_capacity')[0].value = params.get("downmbps") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.seed')[0].value = params.get("obfsParam") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls_host')[0].value = params.get("peer") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_tls_alpn')[0].value = params.get("alpn") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.insecure')[0].checked = params.get("insecure") ? true : false;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = url.hash ? decodeURIComponent(url.hash.slice(1)) : "";
|
||||
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
return false;
|
||||
case "ss":
|
||||
var url0, param = "";
|
||||
var sipIndex = ssu[1].indexOf("@");
|
||||
var ploc = ssu[1].indexOf("#");
|
||||
if (ploc > 0) {
|
||||
url0 = ssu[1].substr(0, ploc);
|
||||
param = ssu[1].substr(ploc + 1);
|
||||
} else {
|
||||
url0 = ssu[1];
|
||||
}
|
||||
if (sipIndex != -1) {
|
||||
// SIP002
|
||||
var userInfo = b64decsafe(url0.substr(0, sipIndex));
|
||||
var temp = url0.substr(sipIndex + 1).split("/?");
|
||||
var serverInfo = temp[0].split(":");
|
||||
var server = serverInfo[0];
|
||||
var port = serverInfo[1].replace("/","");
|
||||
var method, password, plugin, pluginOpts;
|
||||
if (temp[1]) {
|
||||
var pluginInfo = decodeURIComponent(temp[1]);
|
||||
var pluginIndex = pluginInfo.indexOf(";");
|
||||
var pluginNameInfo = pluginInfo.substr(0, pluginIndex);
|
||||
plugin = pluginNameInfo.substr(pluginNameInfo.indexOf("=") + 1);
|
||||
pluginOpts = pluginInfo.substr(pluginIndex + 1);
|
||||
}
|
||||
var userInfoSplitIndex = userInfo.indexOf(":");
|
||||
if (userInfoSplitIndex != -1) {
|
||||
method = userInfo.substr(0, userInfoSplitIndex);
|
||||
password = userInfo.substr(userInfoSplitIndex + 1);
|
||||
}
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = ssu[0];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = server;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = port;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.password')[0].value = password || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.encrypt_method_ss')[0].value = method || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.plugin')[0].value = plugin || "none";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.plugin')[0].dispatchEvent(event);
|
||||
if (plugin != undefined) {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.plugin_opts')[0].value = pluginOpts || "";
|
||||
}
|
||||
if (param != undefined) {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = decodeURI(param);
|
||||
}
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
} else {
|
||||
var sstr = b64decsafe(url0);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = ssu[0];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
var team = sstr.split('@');
|
||||
var part1 = team[0].split(':');
|
||||
var part2 = team[1].split(':');
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = part2[0];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = part2[1];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.password')[0].value = part1[1];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.encrypt_method_ss')[0].value = part1[0];
|
||||
if (param != undefined) {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = decodeURI(param);
|
||||
}
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
}
|
||||
return false;
|
||||
case "ssr":
|
||||
var sstr = b64decsafe(ssu[1]);
|
||||
var ploc = sstr.indexOf("/?");
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = ssu[0];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
var url0, param = "";
|
||||
if (ploc > 0) {
|
||||
url0 = sstr.substr(0, ploc);
|
||||
param = sstr.substr(ploc + 2);
|
||||
}
|
||||
var ssm = url0.match(/^(.+):([^:]+):([^:]*):([^:]+):([^:]*):([^:]+)/);
|
||||
if (!ssm || ssm.length < 7) return false;
|
||||
var pdict = {};
|
||||
if (param.length > 2) {
|
||||
var a = param.split('&');
|
||||
for (var i = 0; i < a.length; i++) {
|
||||
var b = a[i].split('=');
|
||||
pdict[decodeURIComponent(b[0])] = decodeURIComponent(b[1] || '');
|
||||
}
|
||||
}
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = ssm[1];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = ssm[2];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.protocol')[0].value = ssm[3];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.encrypt_method')[0].value = ssm[4];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.obfs')[0].value = ssm[5];
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.password')[0].value = b64decsafe(ssm[6]);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.obfs_param')[0].value = dictvalue(pdict, 'obfsparam');
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.protocol_param')[0].value = dictvalue(pdict, 'protoparam');
|
||||
var rem = pdict['remarks'];
|
||||
if (typeof (rem) != 'undefined' && rem != '' && rem.length > 0) document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = b64decutf8safe(rem);
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
return false;
|
||||
case "trojan":
|
||||
try {
|
||||
var url = new URL("http://" + ssu[1]);
|
||||
} catch(e) {
|
||||
alert(e)
|
||||
return false;
|
||||
}
|
||||
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = url.hash ? decodeURIComponent(url.hash.slice(1)) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = "v2ray";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].value = "trojan";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = url.hostname;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = url.port || "80";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.password')[0].value = decodeURIComponent(url.username);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls')[0].checked = true;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls_host')[0].value = url.searchParams.get("sni");
|
||||
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
return false;
|
||||
case "vmess":
|
||||
var sstr = b64DecodeUnicode(ssu[1]);
|
||||
var ploc = sstr.indexOf("/?");
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = "v2ray";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].value = "vmess";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].dispatchEvent(event);
|
||||
var url0, param = "";
|
||||
if (ploc > 0) {
|
||||
url0 = sstr.substr(0, ploc);
|
||||
param = sstr.substr(ploc + 2);
|
||||
}
|
||||
var ssm = JSON.parse(sstr);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = ssm.ps;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = ssm.add;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = ssm.port;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.vmess_id')[0].value = ssm.id;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.transport')[0].value = ssm.net;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.transport')[0].dispatchEvent(event);
|
||||
if (ssm.net == "tcp") {
|
||||
if (ssm.type && ssm.type != "http") {
|
||||
ssm.type = "none"
|
||||
}
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tcp_guise')[0].value = ssm.type;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tcp_guise')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.http_host')[0].value = ssm.host;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.http_path')[0].value = ssm.path;
|
||||
}
|
||||
if (ssm.net == "ws") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.ws_host')[0].value = ssm.host;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.ws_path')[0].value = ssm.path;
|
||||
}
|
||||
if (ssm.net == "h2") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.h2_host')[0].value = ssm.host;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.h2_path')[0].value = ssm.path;
|
||||
}
|
||||
if (ssm.net == "quic") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_security')[0].value = ssm.securty;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_key')[0].value = ssm.key;
|
||||
}
|
||||
if (ssm.net == "kcp") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.kcp_guise')[0].value = ssm.type;
|
||||
}
|
||||
if (ssm.tls == "tls") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls')[0].checked = true;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls_host')[0].value = ssm.sni || ssm.host;
|
||||
}
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.mux')[0].checked = true;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.mux')[0].dispatchEvent(event);
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
return false;
|
||||
case "vless":
|
||||
try {
|
||||
var url = new URL("http://" + ssu[1]);
|
||||
var params = url.searchParams;
|
||||
} catch(e) {
|
||||
alert(e)
|
||||
return false;
|
||||
}
|
||||
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.alias')[0].value = url.hash ? decodeURIComponent(url.hash.slice(1)) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].value = "v2ray";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.type')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].value = "vless";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.v2ray_protocol')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server')[0].value = url.hostname;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.server_port')[0].value = url.port || "80";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.vmess_id')[0].value = url.username;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.transport')[0].value = params.get("type") == "http" ? "h2" : params.get("type") || "tcp";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.transport')[0].dispatchEvent(event);
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.vless_encryption')[0].value = params.get("encryption") || "none";
|
||||
if ([ "tls", "reality" ].includes(params.get("security"))) {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.' + params.get("security"))[0].checked = true;
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.' + params.get("security"))[0].dispatchEvent(event);
|
||||
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.fingerprint')[0].value = params.get("fp") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls_flow')[0].value = params.get("flow") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tls_host')[0].value = params.get("sni") || "";
|
||||
|
||||
if (params.get("security") === "reality") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.reality_publickey')[0].value = params.get("pbk") ? decodeURIComponent(params.get("pbk")) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.reality_shortid')[0].value = params.get("sid") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.reality_spiderx')[0].value = params.get("spx") ? decodeURIComponent(params.get("spx")) : "";
|
||||
}
|
||||
}
|
||||
switch (params.get("type")) {
|
||||
case "ws":
|
||||
if (params.get("security") !== "tls")
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.ws_host')[0].value = params.get("host") ? decodeURIComponent(params.get("host")) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.ws_path')[0].value = params.get("path") ? decodeURIComponent(params.get("path")) : "/";
|
||||
break;
|
||||
case "kcp":
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.kcp_guise')[0].value = params.get("headerType") || "none";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.seed')[0].value = params.get("seed") || "";
|
||||
break;
|
||||
case "http":
|
||||
/* this is non-standard, bullshit */
|
||||
case "h2":
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.h2_host')[0].value = params.get("host") ? decodeURIComponent(params.get("host")) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.h2_path')[0].value = params.get("path") ? decodeURIComponent(params.get("path")) : "";
|
||||
break;
|
||||
case "quic":
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_guise')[0].value = params.get("headerType") || "none";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_security')[0].value = params.get("quicSecurity") || "none";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.quic_key')[0].value = params.get("key") || "";
|
||||
break;
|
||||
case "grpc":
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.serviceName')[0].value = params.get("serviceName") || "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.grpc_mode')[0].value = params.get("mode") || "gun";
|
||||
break;
|
||||
case "tcp":
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tcp_guise')[0].value = params.get("headerType") || "none";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.tcp_guise')[0].dispatchEvent(event);
|
||||
if (params.get("headerType") === "http") {
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.http_host')[0].value = params.get("host") ? decodeURIComponent(params.get("host")) : "";
|
||||
document.getElementsByName('cbid.bypass.' + sid + '.http_path')[0].value = params.get("path") ? decodeURIComponent(params.get("path")) : "";
|
||||
}
|
||||
break;
|
||||
}
|
||||
s.innerHTML = "<font color='green'><%:Import configuration information successfully.%></font>";
|
||||
return false;
|
||||
default:
|
||||
s.innerHTML = "<font color='red'><%:Invalid format.%></font>";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<input type="button" class="btn cbi-button cbi-button-apply" value="<%:Import%>" onclick="return import_ssr_url(this, '<%=self.option%>', '<%=self.value%>')" />
|
||||
<span id="<%=self.option%>-status"></span>
|
||||
<%+cbi/valuefooter%>
|
@ -1,124 +0,0 @@
|
||||
<style>
|
||||
.pure-img {
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
}
|
||||
.flag .pure-img {
|
||||
max-height: none;
|
||||
margin-top: -0.34rem;
|
||||
}
|
||||
.status-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .3);
|
||||
color: #525f7f;
|
||||
background: #fff;
|
||||
z-index: 5;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.status-bar .inner {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.status-bar .inner .flag {
|
||||
height: 2.6em;
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.status-bar .inner .status-info {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.status-bar .icon-con {
|
||||
height: 2.6em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
footer{
|
||||
display:block !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 700px) {
|
||||
.status-bar .icon-con {
|
||||
height: 2.5em;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="<%=media%>/js/jquery.min.js"></script>
|
||||
<script>
|
||||
if(typeof jQuery == 'undefined'){
|
||||
document.write('<script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"><\/script>');
|
||||
}
|
||||
</script>
|
||||
<div class="status-bar">
|
||||
<div class="inner">
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-2">
|
||||
<span class="flag"><img src="/luci-static/bypass/flags/loading.svg" class="pure-img"></span> <span
|
||||
class="status-info">获取中...</span>
|
||||
</div>
|
||||
<div class="pure-u-1-2">
|
||||
<div class="icon-con">
|
||||
<img src="/luci-static/bypass/img/site_icon1_01.png" class="pure-img i1">
|
||||
<img src="/luci-static/bypass/img/site_icon1_02.png" class="pure-img i2">
|
||||
<img src="/luci-static/bypass/img/site_icon1_03.png" class="pure-img i3">
|
||||
<img src="/luci-static/bypass/img/site_icon1_04.png" class="pure-img i4">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
const _ASSETS = '/luci-static/bypass/';
|
||||
const CHECK_IP_URL = '<%=url([[admin]], [[services]], [[bypass]], [[ip]])%>';
|
||||
|
||||
var wW = $(window).width();
|
||||
|
||||
function resize() {
|
||||
wW = $(window).width();
|
||||
lw = $(".main-left").width()
|
||||
$(".status-bar").width(wW - lw);
|
||||
$(".status-bar .flag").width($(".status-bar .flag").height() / 3 * 4);
|
||||
|
||||
$(".flag-icon").each(function (index, el) {
|
||||
if ($(el).height < 60) {
|
||||
$(el).parent.height(60);
|
||||
$(el).width(60)
|
||||
} else {
|
||||
$(el).width($(el).height());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function wirte_status(data) {
|
||||
if (data.outboard) {
|
||||
json = data.outboardip;
|
||||
$(".flag img").attr("src", _ASSETS + "flags/" + json.flag + ".svg");
|
||||
$(".status-info").html(data.outboard + "<br>" + json.country);
|
||||
}
|
||||
data.baidu ? $(".i1").attr("src", _ASSETS + "img/site_icon_01.png") : $(".i1").attr("src", _ASSETS + "img/site_icon1_01.png");
|
||||
data.taobao ? $(".i2").attr("src", _ASSETS + "img/site_icon_02.png") : $(".i2").attr("src", _ASSETS + "img/site_icon1_02.png");
|
||||
data.google ? $(".i3").attr("src", _ASSETS + "img/site_icon_03.png") : $(".i3").attr("src", _ASSETS + "img/site_icon1_03.png");
|
||||
data.youtube ? $(".i4").attr("src", _ASSETS + "img/site_icon_04.png") : $(".i4").attr("src", _ASSETS + "img/site_icon1_04.png");
|
||||
setTimeout(function () { $("body").trigger("iploaded", [true]); }, 200);
|
||||
}
|
||||
XHR.poll(5, CHECK_IP_URL, null,
|
||||
function (x, data) {
|
||||
wirte_status(data);
|
||||
}
|
||||
);
|
||||
|
||||
$(document).ready(function () {
|
||||
resize();
|
||||
$.getJSON(CHECK_IP_URL, wirte_status);
|
||||
});
|
||||
|
||||
$(window).resize(resize);
|
||||
|
||||
</script>
|
@ -1,18 +0,0 @@
|
||||
<%+cbi/valueheader%>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
function subscribe(btn,dataname){
|
||||
btn.disabled=true;
|
||||
btn.value='<%:Refresh...%>';
|
||||
murl=dataname;
|
||||
XHR.get('<%=luci.dispatcher.build_url("admin","services","bypass","subscribe")%>',{set:murl},function(x,rv){
|
||||
// 先简单刷新,后期如果重构会考虑下如何组织lua shell JavaScript之间的代码逻辑和各自的调用逻辑
|
||||
window.location.reload()
|
||||
// btn.disabled = false;
|
||||
// btn.value = '<%:Refresh Data %>';
|
||||
});
|
||||
return false;
|
||||
}
|
||||
//]]></script>
|
||||
<input type="button" class="cbi-button cbi-input-apply" value="<%:Update All Subscribe Severs%> " onclick="return subscribe(this,'<%=self.option%>')" />
|
||||
<!-- <span id="<%=self.option%>-status"><em><%=self.value%></em></span> -->
|
||||
<%+cbi/valuefooter%>
|
@ -1,172 +0,0 @@
|
||||
<%
|
||||
local xray_version = require "luci.model.cbi.bypass.api".get_xray_version()
|
||||
-%>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var xrayInfo;
|
||||
var tokenStr = '<%=token%>';
|
||||
var manuallyUpdateText = '<%:Check update%>';
|
||||
var noUpdateText = '<%:It is the latest version%>';
|
||||
var updateSuccessText = '<%:Update successful%>';
|
||||
var clickToUpdateText = '<%:Click to update%>';
|
||||
var inProgressText = '<%:Updating...%>';
|
||||
var unexpectedErrorText = '<%:Unexpected error%>';
|
||||
var updateInProgressNotice = '<%:Updating, are you sure to close?%>';
|
||||
var downloadingText = '<%:Downloading...%>';
|
||||
var decompressioningText = '<%:Unpacking...%>';
|
||||
var movingText = '<%:Moving...%>';
|
||||
|
||||
window.onload = function() {
|
||||
var xrayCheckBtn = document.getElementById('_xray-check_btn');
|
||||
var xrayDetailElm = document.getElementById('_xray-check_btn-detail');
|
||||
};
|
||||
|
||||
function addPageNotice_xray() {
|
||||
window.onbeforeunload = function(e) {
|
||||
e.returnValue = updateInProgressNotice;
|
||||
return updateInProgressNotice;
|
||||
};
|
||||
}
|
||||
|
||||
function removePageNotice_xray() {
|
||||
window.onbeforeunload = undefined;
|
||||
}
|
||||
|
||||
function onUpdateSuccess_xray(btn) {
|
||||
alert(updateSuccessText);
|
||||
|
||||
if(btn) {
|
||||
btn.value = updateSuccessText;
|
||||
btn.placeholder = updateSuccessText;
|
||||
btn.disabled = true;
|
||||
}
|
||||
|
||||
window.setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
function onRequestError_xray(btn, errorMessage) {
|
||||
btn.disabled = false;
|
||||
btn.value = manuallyUpdateText;
|
||||
|
||||
if(errorMessage) {
|
||||
alert(errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
function onBtnClick_xray(btn) {
|
||||
if(xrayInfo === undefined) {
|
||||
checkUpdate_xray(btn);
|
||||
} else {
|
||||
doUpdate_xray(btn);
|
||||
}
|
||||
}
|
||||
|
||||
function checkUpdate_xray(btn) {
|
||||
btn.disabled = true;
|
||||
btn.value = inProgressText;
|
||||
|
||||
addPageNotice_xray();
|
||||
|
||||
var ckeckDetailElm = document.getElementById(btn.id + '-detail');
|
||||
|
||||
XHR.get('<%=url([[admin]], [[services]], [[bypass]], [[xray_check]])%>', {
|
||||
token: tokenStr,
|
||||
arch: ''
|
||||
}, function(x,json) {
|
||||
removePageNotice_xray();
|
||||
|
||||
if(json.code) {
|
||||
xrayInfo = undefined;
|
||||
onRequestError_xray(btn, json.error);
|
||||
} else {
|
||||
if(json.update) {
|
||||
xrayInfo = json;
|
||||
btn.disabled = false;
|
||||
btn.value = clickToUpdateText;
|
||||
btn.placeholder = clickToUpdateText;
|
||||
|
||||
if(ckeckDetailElm) {
|
||||
var urlNode = '';
|
||||
if(json.version) {
|
||||
urlNode = '<em style="color:red;">最新版本号:' + json.version + '</em>';
|
||||
if(json.url && json.url.html) {
|
||||
urlNode = '<a href="' + json.url.html + '" target="_blank">' + urlNode + '</a>';
|
||||
}
|
||||
}
|
||||
ckeckDetailElm.innerHTML = urlNode;
|
||||
}
|
||||
} else {
|
||||
btn.disabled = true;
|
||||
btn.value = noUpdateText;
|
||||
}
|
||||
}
|
||||
},300);
|
||||
}
|
||||
|
||||
function doUpdate_xray(btn) {
|
||||
btn.disabled = true;
|
||||
btn.value = downloadingText;
|
||||
|
||||
addPageNotice_xray();
|
||||
|
||||
var xrayUpdateUrl = '<%=url([[admin]], [[services]], [[bypass]], [[xray_update]])%>';
|
||||
// Download file
|
||||
XHR.get(xrayUpdateUrl, {
|
||||
token: tokenStr,
|
||||
url: xrayInfo ? xrayInfo.url.download : ''
|
||||
}, function(x,json) {
|
||||
if(json.code) {
|
||||
removePageNotice_xray();
|
||||
onRequestError_xray(btn, json.error);
|
||||
} else {
|
||||
btn.value = decompressioningText;
|
||||
|
||||
// Extract file
|
||||
XHR.get(xrayUpdateUrl, {
|
||||
token: tokenStr,
|
||||
task: 'extract',
|
||||
file: json.file,
|
||||
subfix: xrayInfo ? xrayInfo.type : ''
|
||||
}, function(x,json) {
|
||||
if(json.code) {
|
||||
removePageNotice_xray();
|
||||
onRequestError_xray(btn, json.error);
|
||||
} else {
|
||||
btn.value = movingText;
|
||||
|
||||
// Move file to target dir
|
||||
XHR.get(xrayUpdateUrl, {
|
||||
token: tokenStr,
|
||||
task: 'move',
|
||||
file: json.file
|
||||
}, function(x,json) {
|
||||
removePageNotice_xray();
|
||||
if(json.code) {
|
||||
onRequestError_xray(btn, json.error);
|
||||
} else {
|
||||
onUpdateSuccess_xray(btn);
|
||||
}
|
||||
},300)
|
||||
}
|
||||
},300)
|
||||
}
|
||||
},300)
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<div class="cbi-value">
|
||||
<label class="cbi-value-title">Xray
|
||||
<%:Version%>
|
||||
</label>
|
||||
<div class="cbi-value-field">
|
||||
<div class="cbi-value-description">
|
||||
<span>【 <%=xray_version%> 】</span>
|
||||
<input class="cbi-button cbi-input-apply" type="button" id="_xray-check_btn" onclick="onBtnClick_xray(this);" value="<%:Check update%>" />
|
||||
<span id="_xray-check_btn-detail"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,739 +0,0 @@
|
||||
msgid "Base Setting"
|
||||
msgstr "基本设置"
|
||||
|
||||
msgid "Bypass Settings"
|
||||
msgstr "Bypass 设置"
|
||||
|
||||
msgid "Support SS/SSR/XRAY/TROJAN/NAIVEPROXY/SOCKS5/TUN etc."
|
||||
msgstr "支持 SS/SSR/Xray/Trojan/NavieProxy/Socks5/TUN 等协议"
|
||||
|
||||
msgid "Bypass RUNNING"
|
||||
msgstr "Bypass 客户端运行中"
|
||||
|
||||
msgid "Bypass NOT RUNNING"
|
||||
msgstr "Bypass 客户端未运行"
|
||||
|
||||
msgid "Main Server"
|
||||
msgstr "主服务器"
|
||||
|
||||
msgid "Enable"
|
||||
msgstr "启用"
|
||||
|
||||
msgid "Disable"
|
||||
msgstr "停用"
|
||||
|
||||
msgid "Game Mode UDP Server"
|
||||
msgstr "游戏模式UDP中继服务器"
|
||||
|
||||
msgid "Same as Global Server"
|
||||
msgstr "与全局服务器相同"
|
||||
|
||||
msgid "Netflix Server"
|
||||
msgstr "Netflix 分流服务器"
|
||||
|
||||
msgid "External Proxy Mode"
|
||||
msgstr "分流服务器(前置)代理"
|
||||
|
||||
msgid "Forward Netflix Proxy through Main Proxy"
|
||||
msgstr "分流服务器流量通过主服务节点中转代理转发"
|
||||
|
||||
msgid "Multi Threads Option"
|
||||
msgstr "多线程并发转发"
|
||||
|
||||
msgid "Auto Threads"
|
||||
msgstr "自动(CPU线程数)"
|
||||
|
||||
msgid "1 Thread"
|
||||
msgstr "单线程"
|
||||
|
||||
msgid "2 Threads"
|
||||
msgstr "2 线程"
|
||||
|
||||
msgid "4 Threads"
|
||||
msgstr "4 线程"
|
||||
|
||||
msgid "8 Threads"
|
||||
msgstr "8 线程"
|
||||
|
||||
msgid "16 Threads"
|
||||
msgstr "16 线程"
|
||||
|
||||
msgid "32 Threads"
|
||||
msgstr "32 线程"
|
||||
|
||||
msgid "64 Threads"
|
||||
msgstr "64 线程"
|
||||
|
||||
msgid "128 Threads"
|
||||
msgstr "128 线程"
|
||||
|
||||
msgid "Running Mode"
|
||||
msgstr "运行模式"
|
||||
|
||||
msgid "GFW List Mode"
|
||||
msgstr "GFW列表模式"
|
||||
|
||||
msgid "Smart Mode"
|
||||
msgstr "智能模式(基于ChinaDNS-NG)"
|
||||
|
||||
msgid "Global Mode"
|
||||
msgstr "全局模式"
|
||||
|
||||
msgid "Oversea Mode"
|
||||
msgstr "海外用户回国模式"
|
||||
|
||||
msgid "Proxy Ports"
|
||||
msgstr "需要代理的端口"
|
||||
|
||||
msgid "Load GFW List"
|
||||
msgstr "加载GFW列表"
|
||||
|
||||
msgid "If the domestic DNS does not hijack foreign domain name to domestic IP, No need to be enabled"
|
||||
msgstr "如果国内DNS未劫持国外域名返回国内的IP,不需要启用"
|
||||
|
||||
msgid "Preload IP"
|
||||
msgstr "预加载IP"
|
||||
|
||||
msgid "Preload Google and Telegram IP segments (GFW mode only)"
|
||||
msgstr "预加载谷歌与Telegram IP段(仅GFW模式生效)"
|
||||
|
||||
msgid "All Ports"
|
||||
msgstr "所有端口(默认)"
|
||||
|
||||
msgid "Only Common Ports"
|
||||
msgstr "仅常用端口(不走P2P流量到代理)"
|
||||
|
||||
msgid "Foreign Resolve Dns Mode"
|
||||
msgstr "国外DNS解析方式"
|
||||
|
||||
msgid "Use SmartDNS DoH query"
|
||||
msgstr "使用SmartDNS DoH查询"
|
||||
|
||||
msgid "Use SmartDNS TCP query"
|
||||
msgstr "使用SmartDNS TCP查询"
|
||||
|
||||
msgid "Foreign DoH"
|
||||
msgstr "国外DoH"
|
||||
|
||||
msgid "Custom DNS format is https://cloudflare-dns.com/dns-query or https://104.16.249.249/dns-query -http-host cloudflare-dns.com"
|
||||
msgstr "自定义DNS格式为 https://cloudflare-dns.com/dns-query 或 https://104.16.249.249/dns-query -http-host cloudflare-dns.com"
|
||||
|
||||
msgid "Google"
|
||||
msgstr "谷歌"
|
||||
|
||||
msgid "Do not use the same DNS server as the global server"
|
||||
msgstr "不要使用与全局服务器相同的DNS"
|
||||
|
||||
msgid "Foreign DNS"
|
||||
msgstr "国外DNS"
|
||||
|
||||
msgid "Custom DNS format is 1.1.1.1:53,1.0.0.1 ,Port optional"
|
||||
msgstr "自定义DNS格式为 1.1.1.1:53,1.0.0.1 ,端口号可选"
|
||||
|
||||
msgid "Domestic Resolve Dns Mode"
|
||||
msgstr "国内DNS解析方式"
|
||||
|
||||
msgid "Use SmartDNS UDP query"
|
||||
msgstr "使用SmartDNS UDP查询"
|
||||
|
||||
msgid "If DoH resolution is not normal,use UDP mode and select ISP DNS"
|
||||
msgstr "如果DoH解析不正常则使用UDP模式并选择ISP的DNS"
|
||||
|
||||
msgid "Domestic DoH"
|
||||
msgstr "国内DoH"
|
||||
|
||||
msgid "Custom DNS format is https://dns.alidns.com/dns-query or https://223.5.5.5/dns-query"
|
||||
msgstr "自定义DNS格式为 https://dns.alidns.com/dns-query 或 https://223.5.5.5/dns-query"
|
||||
|
||||
msgid "Ali"
|
||||
msgstr "阿里"
|
||||
|
||||
msgid "ISP DNS"
|
||||
msgstr "运营商DNS"
|
||||
|
||||
msgid "Use ISP DNS to resolve DoH domain"
|
||||
msgstr "使用运营商DNS解析DoH域名"
|
||||
|
||||
msgid "Domestic DNS"
|
||||
msgstr "国内DNS"
|
||||
|
||||
msgid "Custom DNS format is 223.5.5.5:53,223.6.6.6 ,Port optional"
|
||||
msgstr "自定义DNS格式为 223.5.5.5:53,223.6.6.6 ,端口号可选"
|
||||
|
||||
msgid "Severs Nodes"
|
||||
msgstr "服务器节点"
|
||||
|
||||
msgid "Servers subscription and manage"
|
||||
msgstr "服务器节点订阅与管理"
|
||||
|
||||
msgid "Auto Update"
|
||||
msgstr "自动更新"
|
||||
|
||||
msgid "Auto Update Server subscription,GFW list and CHN route"
|
||||
msgstr "自动更新服务器订阅、GFW列表和 CHN路由表"
|
||||
|
||||
msgid "Update time (every day)"
|
||||
msgstr "更新时间 (每天)"
|
||||
|
||||
msgid "Subscribe URL"
|
||||
msgstr "SS/SSR/V2/TROJAN订阅URL"
|
||||
|
||||
msgid "Subscribe Filter Words"
|
||||
msgstr "订阅节点关键字过滤"
|
||||
|
||||
msgid "Subscribe Save Words"
|
||||
msgstr "订阅节点关键字保留检查"
|
||||
|
||||
msgid "Filter Words splited by /"
|
||||
msgstr "命中关键字的节点将被丢弃。多个关键字用 / 分隔"
|
||||
|
||||
msgid "Save Words splited by /"
|
||||
msgstr "命中关键字的节点将被保留。多个关键字用 / 分隔。此项为空则不启用保留匹配"
|
||||
|
||||
msgid "Update Subscribe List"
|
||||
msgstr "更新订阅URL列表"
|
||||
|
||||
msgid "Update subscribe url list first"
|
||||
msgstr "修改订阅URL和节点关键字后,请先点击更新"
|
||||
|
||||
msgid "Subscribe Default Auto-Switch"
|
||||
msgstr "订阅新节点故障转移设置"
|
||||
|
||||
msgid "Subscribe new add server default Auto-Switch on"
|
||||
msgstr "订阅加入的新节点默认开启故障转移"
|
||||
|
||||
msgid "Through proxy update"
|
||||
msgstr "通过代理更新"
|
||||
|
||||
msgid "Through proxy update list,Not Recommended"
|
||||
msgstr "通过路由器自身代理更新订阅"
|
||||
|
||||
msgid "Update All Subscribe Severs"
|
||||
msgstr "更新所有订阅服务器节点"
|
||||
|
||||
msgid "Delete All Subscribe Severs"
|
||||
msgstr "删除所有订阅服务器节点"
|
||||
|
||||
msgid "Server Count"
|
||||
msgstr "服务器节点数量"
|
||||
|
||||
msgid "Type"
|
||||
msgstr "类型"
|
||||
|
||||
msgid "Alias"
|
||||
msgstr "别名"
|
||||
|
||||
msgid "None"
|
||||
msgstr "无"
|
||||
|
||||
msgid "Server Port"
|
||||
msgstr "端口"
|
||||
|
||||
msgid "Socket Connected"
|
||||
msgstr "连接测试"
|
||||
|
||||
msgid "TCPing Latency"
|
||||
msgstr "TCPing延迟"
|
||||
|
||||
msgid "connecting"
|
||||
msgstr "连接中"
|
||||
|
||||
msgid "ok"
|
||||
msgstr "成功"
|
||||
|
||||
msgid "fail"
|
||||
msgstr "失败"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "使用"
|
||||
|
||||
msgid "Auto Switch"
|
||||
msgstr "故障转移"
|
||||
|
||||
msgid "Edit Server"
|
||||
msgstr "编辑服务器配置"
|
||||
|
||||
msgid "Paste ssr url here"
|
||||
msgstr "在此处粘贴ssr://网址"
|
||||
|
||||
msgid "Unable to copy SSR to clipboard."
|
||||
msgstr "无法复制SSR网址到剪贴板。"
|
||||
|
||||
msgid "Copy SSR to clipboard successfully."
|
||||
msgstr "成功复制SSR网址到剪贴板。"
|
||||
|
||||
msgid "Server Node Type"
|
||||
msgstr "服务器节点类型"
|
||||
|
||||
msgid "Using incorrect encryption mothod may causes service fail to start"
|
||||
msgstr "输入不正确的参数组合可能会导致服务无法启动"
|
||||
|
||||
msgid "Alias(optional)"
|
||||
msgstr "别名(可选)"
|
||||
|
||||
msgid "Network interface to use"
|
||||
msgstr "选择使用的网络接口"
|
||||
|
||||
msgid "Redirect traffic to this network interface"
|
||||
msgstr "分流到这个网络接口"
|
||||
|
||||
msgid "Server Address"
|
||||
msgstr "服务器地址"
|
||||
|
||||
msgid "Enable Authentication"
|
||||
msgstr "启用用户名/密码认证"
|
||||
|
||||
msgid "Username"
|
||||
msgstr "用户名"
|
||||
|
||||
msgid "Password"
|
||||
msgstr "密码"
|
||||
|
||||
msgid "Encrypt Method"
|
||||
msgstr "加密方式"
|
||||
|
||||
msgid "Plugin"
|
||||
msgstr "插件"
|
||||
|
||||
msgid "Plugin Opts"
|
||||
msgstr "插件参数"
|
||||
|
||||
msgid "Protocol"
|
||||
msgstr "传输协议"
|
||||
|
||||
msgid "Protocol param (optional)"
|
||||
msgstr "传输协议参数(可选)"
|
||||
|
||||
msgid "Authentication type"
|
||||
msgstr "验证类型"
|
||||
|
||||
msgid "Authentication payload"
|
||||
msgstr "验证载荷"
|
||||
|
||||
msgid "QUIC connection receive window"
|
||||
msgstr "QUIC 连接接收窗口"
|
||||
|
||||
msgid "QUIC stream receive window"
|
||||
msgstr "QUIC 流接收窗口"
|
||||
|
||||
msgid "Disable Path MTU discovery"
|
||||
msgstr "禁用 MTU 探测"
|
||||
|
||||
msgid "Obfs"
|
||||
msgstr "混淆插件"
|
||||
|
||||
msgid "Obfs param (optional)"
|
||||
msgstr "混淆参数(可选)"
|
||||
|
||||
msgid "VLESS Encryption"
|
||||
msgstr "VLESS 加密"
|
||||
|
||||
msgid "Transport"
|
||||
msgstr "传输协议"
|
||||
|
||||
msgid "allowInsecure"
|
||||
msgstr "允许不安全连接"
|
||||
|
||||
msgid "If true, allowss insecure connection at TLS client, e.g., TLS server uses unverifiable certificates."
|
||||
msgstr "是否允许不安全连接。当选择时,将不会检查远端主机所提供的 TLS 证书的有效性。"
|
||||
|
||||
msgid "Flow"
|
||||
msgstr "流控 (Flow)"
|
||||
|
||||
msgid "Concurrency"
|
||||
msgstr "最大并发连接数"
|
||||
|
||||
msgid "Self-signed Certificate"
|
||||
msgstr "自签证书"
|
||||
|
||||
msgid "If you have a self-signed certificate,please check the box"
|
||||
msgstr "如果你使用自签证书,请选择"
|
||||
|
||||
msgid "upload"
|
||||
msgstr "上传证书"
|
||||
|
||||
msgid "Upload"
|
||||
msgstr "上传"
|
||||
|
||||
msgid "Create upload file error"
|
||||
msgstr "创建证书文件失败"
|
||||
|
||||
msgid "No specify upload file"
|
||||
msgstr "没有上传证书"
|
||||
|
||||
msgid "Current Certificate Path"
|
||||
msgstr "当前证书路径"
|
||||
|
||||
msgid "Please confirm the current certificate path"
|
||||
msgstr "请选择确认所传证书,证书不正确将无法运行"
|
||||
|
||||
msgid "TCP Fast Open"
|
||||
msgstr "TCP快速打开"
|
||||
|
||||
msgid "Enable Auto Switch"
|
||||
msgstr "启用故障转移"
|
||||
|
||||
msgid "Local Port"
|
||||
msgstr "本地端口"
|
||||
|
||||
msgid "KcpTun Enable"
|
||||
msgstr "KcpTun 启用"
|
||||
|
||||
msgid "KcpTun Port"
|
||||
msgstr "KcpTun 端口"
|
||||
|
||||
msgid "KcpTun Password"
|
||||
msgstr "KcpTun 密码"
|
||||
|
||||
msgid "KcpTun Param"
|
||||
msgstr "KcpTun 参数"
|
||||
|
||||
msgid "Access Control"
|
||||
msgstr "访问控制"
|
||||
|
||||
msgid "IP Access Control"
|
||||
msgstr "IP访问控制"
|
||||
|
||||
msgid "WAN IP AC"
|
||||
msgstr "WAN IP访问控制"
|
||||
|
||||
msgid "WAN White List IP"
|
||||
msgstr "不走代理的WAN IP"
|
||||
|
||||
msgid "WAN Force Proxy IP"
|
||||
msgstr "强制走代理的WAN IP"
|
||||
|
||||
msgid "LAN IP AC"
|
||||
msgstr "LAN IP访问控制"
|
||||
|
||||
msgid "LAN Access Control"
|
||||
msgstr "内网客户端分流代理控制"
|
||||
|
||||
msgid "Allow listed only"
|
||||
msgstr "仅允许列表内主机"
|
||||
|
||||
msgid "Allow all except listed"
|
||||
msgstr "除列表外主机皆允许"
|
||||
|
||||
msgid "LAN Host List"
|
||||
msgstr "内网主机列表"
|
||||
|
||||
msgid "LAN Force Proxy Host List"
|
||||
msgstr "全局代理的LAN IP"
|
||||
|
||||
msgid "Game Mode Host List"
|
||||
msgstr "增强游戏模式客户端LAN IP"
|
||||
|
||||
msgid "Domain List"
|
||||
msgstr "域名列表"
|
||||
|
||||
msgid "Direct Domain List"
|
||||
msgstr "不走代理的域名"
|
||||
|
||||
msgid "Proxy Domain List"
|
||||
msgstr "强制走代理的域名"
|
||||
|
||||
msgid "These had been joined websites will not proxy."
|
||||
msgstr "加入的域名将不走代理。"
|
||||
|
||||
msgid "These had been joined websites will use proxy."
|
||||
msgstr "加入的域名将走代理。"
|
||||
|
||||
msgid "Not valid domain name, please re-enter!"
|
||||
msgstr "不是有效域名,请重新输入!"
|
||||
|
||||
msgid "Netflix Domain List"
|
||||
msgstr "Netflix分流域名"
|
||||
|
||||
msgid "Oversea Domain List"
|
||||
msgstr "回国模式域名"
|
||||
|
||||
msgid "Preload domain(GFW Only)"
|
||||
msgstr "预加载域名(仅GFW模式)"
|
||||
|
||||
msgid "Advanced Settings"
|
||||
msgstr "高级设置"
|
||||
|
||||
msgid "Server failsafe auto swith settings"
|
||||
msgstr "服务器节点故障故障转移设置"
|
||||
|
||||
msgid "Enable Process Deamon"
|
||||
msgstr "启用进程自动守护"
|
||||
|
||||
msgid "Switch check cycly(second)"
|
||||
msgstr "故障转移检查周期(秒)"
|
||||
|
||||
msgid "Check timout(second)"
|
||||
msgstr "切换检查超时时间(秒)"
|
||||
|
||||
msgid "Check Try Count"
|
||||
msgstr "切换检查重试次数"
|
||||
|
||||
msgid "Global SOCKS5 Proxy Server"
|
||||
msgstr "SOCKS5 代理服务端(全局)"
|
||||
|
||||
msgid "Server"
|
||||
msgstr "服务器"
|
||||
|
||||
msgid "SSR Server"
|
||||
msgstr "服务端"
|
||||
|
||||
msgid "Global Setting"
|
||||
msgstr "全局设置"
|
||||
|
||||
msgid "Enable Server"
|
||||
msgstr "启动服务端"
|
||||
|
||||
msgid "Server Setting"
|
||||
msgstr "服务端配置"
|
||||
|
||||
msgid "Server Type"
|
||||
msgstr "服务端类型"
|
||||
|
||||
msgid "Encrypt Method (SS)"
|
||||
msgstr "加密方式 (SS)"
|
||||
|
||||
msgid "Plugin (SS)"
|
||||
msgstr "插件 (SS)"
|
||||
|
||||
msgid "Warning! Please do not reuse the port!"
|
||||
msgstr "警告!请不要重复使用端口!"
|
||||
|
||||
msgid "Enable Once Auth Mode"
|
||||
msgstr "启用一次性认证"
|
||||
|
||||
msgid "Enable Once Auth,the client IP that passed the authentication will be added to the whitelist address, this IP no longer needs to be verified"
|
||||
msgstr "启用一次性认证后会将通过认证的客户端IP地址加入白名单,之后的连接不再进行认证"
|
||||
|
||||
msgid "Connection Timeout"
|
||||
msgstr "连接超时"
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr "未知"
|
||||
|
||||
msgid "Not exist"
|
||||
msgstr "未安装可执行文件"
|
||||
|
||||
msgid "Status"
|
||||
msgstr "状态"
|
||||
|
||||
msgid "Global Client"
|
||||
msgstr "TCP透明代理"
|
||||
|
||||
msgid "Running"
|
||||
msgstr "运行中"
|
||||
|
||||
msgid "Not Running"
|
||||
msgstr "未运行"
|
||||
|
||||
msgid "Game Mode UDP Relay"
|
||||
msgstr "游戏模式UDP中继"
|
||||
|
||||
msgid "Local Servers"
|
||||
msgstr "本机服务端"
|
||||
|
||||
msgid "KcpTun Version"
|
||||
msgstr "KcpTun 版本号"
|
||||
|
||||
msgid "Google Connectivity"
|
||||
msgstr "【谷歌】连通性检查"
|
||||
|
||||
msgid "No Check"
|
||||
msgstr "未检查"
|
||||
|
||||
msgid "Check..."
|
||||
msgstr "正在检查.."
|
||||
|
||||
msgid "Connect OK"
|
||||
msgstr "连接正常"
|
||||
|
||||
msgid "Connect Error"
|
||||
msgstr "连接错误"
|
||||
|
||||
msgid "Check Connect"
|
||||
msgstr "检查连通性"
|
||||
|
||||
msgid "Baidu Connectivity"
|
||||
msgstr "【百度】连通性检查"
|
||||
|
||||
msgid "GFW List Data"
|
||||
msgstr "【GFW列表】数据库"
|
||||
|
||||
msgid "Refresh Data"
|
||||
msgstr "更新数据库"
|
||||
|
||||
msgid "Records"
|
||||
msgstr "条记录"
|
||||
|
||||
msgid "Refresh..."
|
||||
msgstr "正在更新,请稍候.."
|
||||
|
||||
msgid "Refresh OK!"
|
||||
msgstr "更新成功!"
|
||||
|
||||
msgid "Refresh Error!"
|
||||
msgstr "更新失败!"
|
||||
|
||||
msgid "No new data!"
|
||||
msgstr "你已经是最新数据,无需更新!"
|
||||
|
||||
msgid "Total Records:"
|
||||
msgstr "新的总纪录数:"
|
||||
|
||||
msgid "China IPv4 Data"
|
||||
msgstr "【国内IPv4段】数据库"
|
||||
|
||||
msgid "China IPv6 Data"
|
||||
msgstr "【国内IPv6段】数据库"
|
||||
|
||||
msgid "Check Server Port"
|
||||
msgstr "【服务器端口】检查"
|
||||
|
||||
msgid "Check Server"
|
||||
msgstr "检查服务器"
|
||||
|
||||
msgid "Log"
|
||||
msgstr "日志"
|
||||
|
||||
msgid "Finger Print"
|
||||
msgstr "指纹伪造"
|
||||
|
||||
msgid "Shadowsocks2"
|
||||
msgstr "二次加密"
|
||||
|
||||
msgid "From Share URL"
|
||||
msgstr "导入配置信息"
|
||||
|
||||
msgid "Build Share URL"
|
||||
msgstr "导出配置信息"
|
||||
|
||||
msgid "Import Finished"
|
||||
msgstr "导入完成:"
|
||||
|
||||
msgid "Not a supported scheme:"
|
||||
msgstr "不支持此格式:"
|
||||
|
||||
msgid "Invalid Share URL Format"
|
||||
msgstr "无效的配置链接"
|
||||
|
||||
msgid "User cancelled"
|
||||
msgstr "用户已取消"
|
||||
|
||||
msgid "Paste Share URL Here"
|
||||
msgstr "在此处粘贴配置链接"
|
||||
|
||||
msgid "Unable share to clipboard"
|
||||
msgstr "复制配置链接到剪贴板失败"
|
||||
|
||||
msgid "Share to clipboard successfully"
|
||||
msgstr "成功复制配置链接到剪贴板"
|
||||
|
||||
msgid "Faltal on get option:"
|
||||
msgstr "获取选项错误:"
|
||||
|
||||
msgid "Faltal on set option:"
|
||||
msgstr "获取选项错误:"
|
||||
|
||||
msgid "Check update"
|
||||
msgstr "检查更新"
|
||||
|
||||
msgid "Update..."
|
||||
msgstr "更新中"
|
||||
|
||||
msgid "It is the latest version"
|
||||
msgstr "已是最新版本"
|
||||
|
||||
msgid "Update successful"
|
||||
msgstr "更新成功"
|
||||
|
||||
msgid "Click to update"
|
||||
msgstr "点击更新"
|
||||
|
||||
msgid "Updating..."
|
||||
msgstr "更新中"
|
||||
|
||||
msgid "Unexpected error"
|
||||
msgstr "意外错误"
|
||||
|
||||
msgid "Updating, are you sure to close?"
|
||||
msgstr "正在更新,你确认要关闭吗?"
|
||||
|
||||
msgid "Downloading..."
|
||||
msgstr "下载中"
|
||||
|
||||
msgid "Unpacking..."
|
||||
msgstr "解压中"
|
||||
|
||||
msgid "Moving..."
|
||||
msgstr "移动中"
|
||||
|
||||
msgid "App Update"
|
||||
msgstr "组件更新"
|
||||
|
||||
msgid "Please confirm that your firmware supports FPU."
|
||||
msgstr "请确认你的固件支持FPU。"
|
||||
|
||||
msgid "Make sure there is enough space to install %s"
|
||||
msgstr "确保有足够的空间安装 %s"
|
||||
|
||||
msgid "RUNNING"
|
||||
msgstr "运行中"
|
||||
|
||||
msgid "NOT RUNNING"
|
||||
msgstr "未运行"
|
||||
|
||||
msgid "Working..."
|
||||
msgstr "连接正常"
|
||||
|
||||
msgid "Problem detected!"
|
||||
msgstr "连接失败"
|
||||
|
||||
msgid "Very Fast"
|
||||
msgstr "非常快"
|
||||
|
||||
msgid "Fast"
|
||||
msgstr "很快"
|
||||
|
||||
msgid "General"
|
||||
msgstr "一般般"
|
||||
|
||||
msgid "Slow"
|
||||
msgstr "很慢"
|
||||
|
||||
msgid "Very Slow"
|
||||
msgstr "非常慢"
|
||||
|
||||
msgid "Touch Check"
|
||||
msgstr "点我检测"
|
||||
|
||||
msgid "Socks5 Server"
|
||||
msgstr "Socks5服务端"
|
||||
|
||||
msgid "Running Status"
|
||||
msgstr "运行状态"
|
||||
|
||||
msgid "Baidu Connection"
|
||||
msgstr "百度连接"
|
||||
|
||||
msgid "Google Connection"
|
||||
msgstr "谷歌连接"
|
||||
|
||||
msgid "Node Check"
|
||||
msgstr "节点检测"
|
||||
|
||||
msgid "Check..."
|
||||
msgstr "检测中..."
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "清除"
|
||||
|
||||
msgid "To Top"
|
||||
msgstr "置顶"
|
||||
|
||||
msgid "Used with AdGuardHome"
|
||||
msgstr "与AdGuardHome搭配使用"
|
||||
|
||||
msgid "Luci-app-adguardhome require"
|
||||
msgstr "请确保luci-app-adguardhome能正常启用,本插件会联动开启并配置ADG,ADG无需任何设置"
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
zh-cn
|
@ -1,3 +0,0 @@
|
||||
api.ipify.org
|
||||
whrq.net
|
||||
test-ipv6.com
|
@ -1,35 +0,0 @@
|
||||
netflix.com
|
||||
netflix.net
|
||||
nflxext.com
|
||||
nflximg.com
|
||||
nflximg.net
|
||||
nflxsearch.net
|
||||
nflxso.net
|
||||
nflxvideo.net
|
||||
netflixdnstest0.com
|
||||
netflixdnstest1.com
|
||||
netflixdnstest2.com
|
||||
netflixdnstest3.com
|
||||
netflixdnstest4.com
|
||||
netflixdnstest5.com
|
||||
netflixdnstest6.com
|
||||
netflixdnstest7.com
|
||||
netflixdnstest8.com
|
||||
netflixdnstest9.com
|
||||
pandora.com
|
||||
tunein.com
|
||||
hbo.com
|
||||
hbonow.com
|
||||
hboasia.com
|
||||
hbogoasia.com
|
||||
hbogoasia.hk
|
||||
hbolb.onwardsmg.com
|
||||
hbounify-prod.evergent.com
|
||||
bcbolthboa-a.akamaihd.net
|
||||
amazonaws.com
|
||||
aws.amazon.com
|
||||
awsstatic.com
|
||||
fast.com
|
||||
hulu.com
|
||||
huluim.com
|
||||
hbogo.com
|
@ -1,96 +0,0 @@
|
||||
v.youku.com
|
||||
api.youku.com
|
||||
v2.tudou.com
|
||||
www.tudou.com
|
||||
s.plcloud.music.qq.com
|
||||
i.y.qq.com
|
||||
hot.vrs.sohu.com
|
||||
live.tv.sohu.com
|
||||
pad.tv.sohu.com
|
||||
my.tv.sohu.com
|
||||
hot.vrs.letv.com
|
||||
data.video.qiyi.com
|
||||
cache.video.qiyi.com
|
||||
cache.vip.qiyi.com
|
||||
vv.video.qq.com
|
||||
tt.video.qq.com
|
||||
ice.video.qq.com
|
||||
tjsa.video.qq.com
|
||||
a10.video.qq.com
|
||||
xyy.video.qq.com
|
||||
vcq.video.qq.com
|
||||
vsh.video.qq.com
|
||||
vbj.video.qq.com
|
||||
bobo.video.qq.com
|
||||
flvs.video.qq.com
|
||||
bkvv.video.qq.com
|
||||
info.zb.qq.com
|
||||
geo.js.kankan.xunlei.com
|
||||
web-play.pptv.com
|
||||
web-play.pplive.cn
|
||||
dyn.ugc.pps.tv
|
||||
v.pps.tv
|
||||
inner.kandian.com
|
||||
ipservice.163.com
|
||||
so.open.163.com
|
||||
zb.s.qq.com
|
||||
ip.kankan.xunlei.com
|
||||
vxml.56.com
|
||||
music.sina.com.cn
|
||||
play.baidu.com
|
||||
v.iask.com
|
||||
tv.weibo.com
|
||||
wtv.v.iask.com
|
||||
video.sina.com.cn
|
||||
www.yinyuetai.com
|
||||
api.letv.com
|
||||
live.gslb.letv.com
|
||||
static.itv.letv.com
|
||||
ip.apps.cntv.cn
|
||||
vdn.apps.cntv.cn
|
||||
vdn.live.cntv.cn
|
||||
vip.sports.cntv.cn
|
||||
a.play.api.3g.youku.com
|
||||
i.play.api.3g.youku.com
|
||||
api.3g.youku.com
|
||||
tv.api.3g.youku.com
|
||||
play.api.3g.youku.com
|
||||
play.api.3g.tudou.com
|
||||
tv.api.3g.tudou.com
|
||||
api.3g.tudou.com
|
||||
api.tv.sohu.com
|
||||
access.tv.sohu.com
|
||||
iface.iqiyi.com
|
||||
iface2.iqiyi.com
|
||||
cache.m.iqiyi.com
|
||||
dynamic.app.m.letv.com
|
||||
dynamic.meizi.app.m.letv.com
|
||||
dynamic.search.app.m.letv.com
|
||||
dynamic.live.app.m.letv.com
|
||||
listso.m.areainfo.ppstream.com
|
||||
epg.api.pptv.com
|
||||
play.api.pptv.com
|
||||
m.letv.com
|
||||
interface.bilibili.com
|
||||
3g.music.qq.com
|
||||
mqqplayer.3g.qq.com
|
||||
proxy.music.qq.com
|
||||
proxymc.qq.com
|
||||
ip2.kugou.com
|
||||
ip.kugou.com
|
||||
client.api.ttpod.com
|
||||
mobi.kuwo.cn
|
||||
mobilefeedback.kugou.com
|
||||
tingapi.ting.baidu.com
|
||||
music.baidu.com
|
||||
serviceinfo.sdk.duomi.com
|
||||
music.163.com
|
||||
www.xiami.com
|
||||
spark.api.xiami.com
|
||||
iplocation.geo.qiyi.com
|
||||
sns.video.qq.com
|
||||
v5.pc.duomi.com
|
||||
tms.is.ysten.com
|
||||
internal.check.duokanbox.com
|
||||
openapi.youku.com
|
||||
y.qq.com
|
@ -1,10 +0,0 @@
|
||||
91.108.4.0/22
|
||||
91.108.8.0/22
|
||||
91.108.16.0/22
|
||||
91.108.20.0/22
|
||||
91.108.56.0/22
|
||||
95.161.64.0/20
|
||||
91.108.12.0/22
|
||||
149.154.160.0/22
|
||||
149.154.164.0/22
|
||||
149.154.172.0/22
|
@ -1,3 +0,0 @@
|
||||
checkip.dyndns.org
|
||||
checkipv6.dyndns.org
|
||||
checkip.synology.com
|
@ -1,29 +0,0 @@
|
||||
|
||||
config global
|
||||
option dports '2'
|
||||
option threads '0'
|
||||
option run_mode 'router'
|
||||
option dns_mode_o 'tcp'
|
||||
option doh_dns_o '8.8.8.8,8.8.4.4'
|
||||
option gfw_mode '1'
|
||||
option dns_mode_d 'doh'
|
||||
option doh_dns_d 'alidns'
|
||||
option monitor_enable '1'
|
||||
option enable_switch '1'
|
||||
option switch_time '300'
|
||||
option switch_timeout '5'
|
||||
option switch_try_count '3'
|
||||
|
||||
config socks5_proxy
|
||||
|
||||
config access_control
|
||||
option lan_ac_mode 'b'
|
||||
|
||||
config server_global
|
||||
|
||||
config server_subscribe
|
||||
option proxy '0'
|
||||
option auto_update_time '5'
|
||||
option auto_update '1'
|
||||
option filter_words '过期时间/剩余流量/QQ群/官网/防失联地址/回国'
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
if [ "$ACTION" = ifup -a "$INTERFACE" != wan_6 ];then
|
||||
if uci -q get bypass.@global[0].global_server >/dev/null;then
|
||||
if ipset list bypass_all >/dev/null 2>&1;then
|
||||
ipset -F bypass_all
|
||||
for i in $(ip -4 add show | grep -v $(uci -qP /tmp/state get network.wan.device || echo 127.0.0.1) | grep inet | grep -v 127.0.0.1 | awk '{print$2}');do
|
||||
ipset -! add bypass_all $i
|
||||
done
|
||||
fi
|
||||
if pidof smartdns >/dev/null;then
|
||||
killall -q -9 smartdns
|
||||
$(which smartdns) -c /var/etc/smartdns/smartdns.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
@ -1,32 +0,0 @@
|
||||
uci batch <<EOF
|
||||
delete ucitrack.@bypass[-1]
|
||||
add ucitrack bypass
|
||||
set ucitrack.@bypass[-1].init=bypass
|
||||
commit ucitrack
|
||||
delete firewall.bypass
|
||||
set firewall.bypass=include
|
||||
set firewall.bypass.type=script
|
||||
set firewall.bypass.path=/var/etc/bypass.include
|
||||
set firewall.bypass.reload=1
|
||||
commit firewall
|
||||
EOF
|
||||
|
||||
chmod +x /etc/init.d/bypass /usr/share/bypass/* >/dev/null 2>&1
|
||||
rm -rf /tmp/luci-*
|
||||
|
||||
if [[ "$(grep "option uuid" /etc/config/bypass)" ]]; then
|
||||
sed -i "s/option uuid/option vmess_id/" /etc/config/bypass
|
||||
for i in {0..100}
|
||||
do
|
||||
if [ "$(uci -q get bypass.@servers[$i].type)" == 'vless' ];then
|
||||
uci -q set bypass.@servers[$i].type='v2ray'
|
||||
uci -q set bypass.@servers[$i].v2ray_protocol='vless'
|
||||
elif [ "$(uci -q get bypass.@servers[$i].type)" == 'vmess' ];then
|
||||
uci -q set bypass.@servers[$i].type='v2ray'
|
||||
uci -q set bypass.@servers[$i].v2ray_protocol='vmess'
|
||||
fi
|
||||
done
|
||||
uci commit bypass
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,24 +0,0 @@
|
||||
#!/usr/bin/lua
|
||||
require 'nixio'
|
||||
nixio.signal(2,"dfl")
|
||||
if arg[1]==nil or arg[2]==nil then
|
||||
os.exit(1)
|
||||
end
|
||||
addr=arg[1]
|
||||
port=arg[2]
|
||||
t=5
|
||||
if arg[3]~=nil then
|
||||
t=arg[3]
|
||||
end
|
||||
socket=nixio.socket("inet","stream")
|
||||
socket:setopt("socket","rcvtimeo",t)
|
||||
socket:setopt("socket","sndtimeo",t)
|
||||
--print("Detecting ports on server: "..addr..":"..port.."...")
|
||||
if socket:connect(addr,port) then
|
||||
--print("Port open")
|
||||
os.exit(0)
|
||||
else
|
||||
--print("Port closed")
|
||||
os.exit(1)
|
||||
end
|
||||
socket:close()
|
@ -1,27 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
generate_china_banned()
|
||||
{
|
||||
cat $1 | base64 -d > /tmp/gfwlist.txt
|
||||
rm -f $1
|
||||
sed -i '/^@@|/d' /tmp/gfwlist.txt
|
||||
cat /tmp/gfwlist.txt | sort -u |
|
||||
sed 's#!.\+##; s#|##g; s#@##g; s#http:\/\/##; s#https:\/\/##;' |
|
||||
sed '/\*/d; /apple\.com/d; /sina\.cn/d; /sina\.com\.cn/d; /baidu\.com/d; /byr\.cn/d; /jlike\.com/d; /weibo\.com/d; /zhongsou\.com/d; /youdao\.com/d; /sogou\.com/d; /so\.com/d; /soso\.com/d; /aliyun\.com/d; /taobao\.com/d; /jd\.com/d; /qq\.com/d' |
|
||||
sed '/haosou\.com/d /ip\.cn/d /jike\.com/d /gov\.cn/d /uluai\.com\.cn/d /yahoo\.cn/d /yahoo\.co\.jp/d /yahoo\.com/d /ja\.wikipedia\.org/d /cloudfront\.net/d' |
|
||||
sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' |
|
||||
grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' | sort -u |
|
||||
awk '
|
||||
BEGIN { prev = "________"; } {
|
||||
cur = $0;
|
||||
if (index(cur, prev) == 1 && substr(cur, 1 + length(prev) ,1) == ".") {
|
||||
} else {
|
||||
print cur;
|
||||
prev = cur;
|
||||
}
|
||||
}' | sort -u
|
||||
|
||||
}
|
||||
|
||||
generate_china_banned /tmp/gfw.b64 > /tmp/gfwnew.txt
|
||||
rm -f /tmp/gfwlist.txt
|
@ -1,110 +0,0 @@
|
||||
#!/bin/sh
|
||||
NAME=bypass
|
||||
|
||||
uci_get_by_name(){
|
||||
ret=$(uci -q get $NAME.$1.$2)
|
||||
echo ${ret:=$3}
|
||||
}
|
||||
|
||||
uci_get_by_type(){
|
||||
ret=$(uci -q get $NAME.@$1[0].$2)
|
||||
echo ${ret:=$3}
|
||||
}
|
||||
|
||||
redir_tcp=$1
|
||||
kcp=$2
|
||||
redir_udp=$3
|
||||
redir_nf=$4
|
||||
smartdns=$5
|
||||
chinadns=$6
|
||||
socks5=$7
|
||||
server_count=$8
|
||||
server=`cat /tmp/etc/$NAME.include | grep '\-A SS_SPEC_WAN_AC \-d' | grep RETURN | awk '{print$4}' | sed 's/\/.*//'`
|
||||
GLOBAL_SERVER=$(uci_get_by_type global global_server)
|
||||
kcp_port=$(uci_get_by_name $GLOBAL_SERVER kcp_port)
|
||||
server_port=$(uci_get_by_name $GLOBAL_SERVER server_port)
|
||||
password=$(uci_get_by_name $GLOBAL_SERVER kcp_password)
|
||||
kcp_param=$(uci_get_by_name $GLOBAL_SERVER kcp_param)
|
||||
gfw_mode=$(uci_get_by_type global gfw_mode 0)
|
||||
LOG=/var/log/bypass.log
|
||||
[ "$password" != "" ] && password="--key "${password}
|
||||
|
||||
echolog() {
|
||||
local d="$(date "+%Y-%m-%d %H:%M:%S")"
|
||||
echo -e "$d: $*" >>$LOG
|
||||
}
|
||||
|
||||
while :;do
|
||||
sleep 30
|
||||
#redir tcp
|
||||
if [ $redir_tcp -gt 0 ];then
|
||||
t=`ps -w | grep by-retcp | grep -v grep | wc -l`
|
||||
if [ $t -lt $redir_tcp ];then
|
||||
echolog "Redir TCP Error. Restart!"
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
#kcptun
|
||||
if [ $kcp = 1 ];then
|
||||
t=`ps -w | grep kcptun-client | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "SSR KCPTUN Error. Restart!"
|
||||
killall -q -9 kcptun-client
|
||||
$(which kcptun-client) -r $server:$kcp_port -l :$server_port $password $kcp_param >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
#redir udp
|
||||
if [ $redir_udp = 1 ];then
|
||||
t=`ps -w | grep by-reudp | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "Redir UDP Error. Restart!"
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
#redir netflix
|
||||
if [ $redir_nf = 1 ];then
|
||||
t=`ps -w | grep by-nf | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "Redir Netflix Error. Restart!"
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
#smartdns
|
||||
if [ $smartdns = 1 ];then
|
||||
t=`ps -w | grep smartdns | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "SmartDNS Error. Restart!"
|
||||
killall -q -9 smartdns >/dev/null 2>&1
|
||||
$(which smartdns) -c /var/etc/smartdns/smartdns.conf
|
||||
fi
|
||||
fi
|
||||
#chinadns-ng
|
||||
if [ $chinadns = 1 ];then
|
||||
t=`ps -w | grep chinadns-ng | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "ChinaDNS-NG Error. Restart!"
|
||||
$(which chinadns-ng) -l 5337 -c '127.0.0.1#5336' -t '127.0.0.1#5335' -4 china_v4 -6 china_v6 -f -n $([ $gfw_mode = 1 ] && echo -g /etc/bypass/gfw.list) >/dev/null 2>&1 &
|
||||
fi
|
||||
fi
|
||||
#localsocks
|
||||
if [ $socks5 = 1 ];then
|
||||
t=`ps -w | grep by-socks | grep -v grep | wc -l`
|
||||
if [ $t = 0 ];then
|
||||
echolog "Global Socks Server Error. Restart!"
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
#server
|
||||
if [ $server_count -gt 0 ];then
|
||||
t=`ps -w | grep by-server | grep -v grep | wc -l`
|
||||
if [ $t -lt $server_count ];then
|
||||
echolog "SSR Server Error. Restart!"
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
done
|
@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
if [ "$2" = ns ];then
|
||||
[ -n "$3" ] && while ! nslookup $3 >/dev/null 2>&1;do :;done
|
||||
[ -n "$4" ] && while ! nslookup $4 >/dev/null 2>&1;do :;done
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get bypass.@global[0].nf_server)" ];then
|
||||
B=1
|
||||
while ! A=$(curl -Lfsm 9 https://cdn.jsdelivr.net/gh/QiuSimons/Netflix_IP@master/getflix.txt || curl -Lfsm 9 https://raw.githubusercontent.com/QiuSimons/Netflix_IP/master/getflix.txt);do
|
||||
[ $B -ge 20 ] && break || let B++
|
||||
sleep 2
|
||||
done
|
||||
for i in $A;do ipset add netflix $i 2>/dev/null;done
|
||||
fi
|
||||
|
||||
if [ "$1" = gfw ];then
|
||||
B=1
|
||||
A=$(cat /etc/bypass/telegram.list)
|
||||
for i in $A;do ipset add blacklist $i 2>/dev/null;done
|
||||
B=1
|
||||
while ! A=$(nslookup -q=TXT _spf.google.com | grep text | sed -e 's/"v=spf1//' -e 's/ ~all"//' -e 's/ include:/\n/g' | grep -v text);do
|
||||
[ $B -ge 20 ] && break || let B++
|
||||
sleep 2
|
||||
done
|
||||
for i in $A;do
|
||||
B=1
|
||||
while ! nslookup -q=TXT $i >/dev/null 2>&1;do
|
||||
[ $B -ge 20 ] && break || let B++
|
||||
sleep 2
|
||||
done
|
||||
B=$(nslookup -q=TXT $i | sed -e 's/"v=spf1//' -e 's/ ~all"//' -e 's/ ip.:/\n/g' | grep -E -o '([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}')
|
||||
for i in $B;do ipset add blacklist $i 2>/dev/null;done
|
||||
done
|
||||
|
||||
B=1
|
||||
while (curl --retry 3 -m 5 216.239.38.120 >/dev/null 2>&1 && ! curl --retry 3 -m 5 https://google.com && true) >/dev/null 2>&1;do
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') : ipset lost,restart bypass..." >>/tmp/log/bypass.log
|
||||
/etc/init.d/bypass restart >/dev/null 2>&1
|
||||
[ $B -ge 10 ] && break || let B++
|
||||
sleep 2
|
||||
done
|
||||
|
||||
fi
|
@ -1,175 +0,0 @@
|
||||
#!/bin/sh
|
||||
TAG="_SS_SPEC_RULE_"
|
||||
IPT="iptables -t nat"
|
||||
FWI=$(uci -q get firewall.bypass.path) || FWI=/var/etc/bypass.include
|
||||
A=0
|
||||
B=0
|
||||
C=0
|
||||
MODE=0
|
||||
|
||||
flush_iptables(){
|
||||
local ipt="iptables -t $1"
|
||||
local DAT=$(iptables-save -t $1)
|
||||
eval $(echo "$DAT" | grep "$TAG" | sed -e 's/^-A/$ipt -D/' -e 's/$/;/')
|
||||
for chain in $(echo "$DAT" | awk '/^:SS_SPEC/{print$1}');do
|
||||
$ipt -F ${chain:1} 2>/dev/null && $ipt -X ${chain:1}
|
||||
done
|
||||
}
|
||||
|
||||
flush_r(){
|
||||
flush_iptables nat
|
||||
flush_iptables mangle
|
||||
ip rule del fwmark 1 lookup 100 2>/dev/null
|
||||
ip route del local 0.0.0.0/0 dev lo table 100 2>/dev/null
|
||||
ipset -X ss_spec_wan_ac 2>/dev/null
|
||||
ipset -X ss_spec_lan_ac 2>/dev/null
|
||||
ipset -X fplan 2>/dev/null
|
||||
ipset -X gmlan 2>/dev/null
|
||||
ipset -X blacklist 2>/dev/null
|
||||
ipset -X netflix 2>/dev/null
|
||||
ipset -X china_v4 2>/dev/null
|
||||
ipset -X china_v6 2>/dev/null
|
||||
ipset -X bypass_all 2>/dev/null
|
||||
echo '#!/bin/sh' > $FWI
|
||||
}
|
||||
|
||||
ipset_r(){
|
||||
$IPT -N SS_SPEC_WAN_FW || return 1
|
||||
$IPT -A SS_SPEC_WAN_FW -p tcp $PROXY_PORTS -j REDIRECT --to-ports $local_port 2>/dev/null
|
||||
[ $MODE = oversea ] && B=1
|
||||
[ $MODE = router -o $MODE = all ] && [ -z "$PROXY_PORTS" ] && B=1
|
||||
[ -n "$NF_SERVER" ] && ipset -N netflix hash:net 2>/dev/null
|
||||
if [ $MODE != all ];then
|
||||
[ -n "$LAN_FP_IP" ] && ipset -N fplan hash:net 2>/dev/null
|
||||
[ -n "$WAN_FW_IP" -o $MODE != router -o -s /etc/bypass/black.list ] && ipset -N blacklist hash:net 2>/dev/null
|
||||
for ip in $LAN_FP_IP;do ipset -! add fplan $ip;done
|
||||
for ip in $WAN_FW_IP;do ipset -! add blacklist $ip;done
|
||||
fi
|
||||
if [ -n "$LAN_GM_IP" -a $B = 0 ];then
|
||||
C=1
|
||||
ipset -N gmlan hash:net 2>/dev/null
|
||||
for ip in $LAN_GM_IP;do ipset -! add gmlan $ip;done
|
||||
fi
|
||||
[ $A = 1 -o $C = 1 ] && /usr/share/bypass/chinaipset
|
||||
[ $MODE = router ] && /usr/share/bypass/chinaipset v6
|
||||
cat > /tmp/by_local.ipset <<EOF
|
||||
0.0.0.0/8
|
||||
10.0.0.0/8
|
||||
100.64.0.0/10
|
||||
127.0.0.0/8
|
||||
169.254.0.0/16
|
||||
172.16.0.0/12
|
||||
192.0.0.0/24
|
||||
192.0.2.0/24
|
||||
192.88.99.0/24
|
||||
192.168.0.0/16
|
||||
198.18.0.0/15
|
||||
198.51.100.0/24
|
||||
203.0.113.0/24
|
||||
224.0.0.0/4
|
||||
240.0.0.0/4
|
||||
EOF
|
||||
sed -i 's/^/add ss_spec_wan_ac /' /tmp/by_local.ipset
|
||||
sed -i '1i\create ss_spec_wan_ac hash:net' /tmp/by_local.ipset
|
||||
ipset -F ss_spec_wan_ac 2>/dev/null
|
||||
ipset -R < /tmp/by_local.ipset 2>/dev/null
|
||||
rm -f /tmp/by_local.ipset
|
||||
for ip in $WAN_BP_IP;do ipset -! add ss_spec_wan_ac $ip;done
|
||||
$IPT -N SS_SPEC_WAN_AC
|
||||
$IPT -A SS_SPEC_WAN_AC -d $server -j RETURN
|
||||
$IPT -A SS_SPEC_WAN_AC -m set --match-set ss_spec_wan_ac dst -j RETURN
|
||||
if ipset list netflix >/dev/null 2>&1;then
|
||||
[ "$(uci -q get bypass.@global[0].nf_proxy)" = 1 ] && $IPT -A SS_SPEC_WAN_AC -d $NF_SERVER -j SS_SPEC_WAN_FW || ipset -! add ss_spec_wan_ac $NF_SERVER
|
||||
$IPT -A SS_SPEC_WAN_AC -p tcp -m set --match-set netflix dst -j REDIRECT --to-ports $NF_PORT
|
||||
fi
|
||||
ipset list fplan >/dev/null 2>&1 && $IPT -A SS_SPEC_WAN_AC -m set --match-set fplan src -j SS_SPEC_WAN_FW
|
||||
ipset list blacklist >/dev/null 2>&1 && $IPT -A SS_SPEC_WAN_AC -m set --match-set blacklist dst -j SS_SPEC_WAN_FW
|
||||
ipset list gmlan >/dev/null 2>&1 && $IPT -A SS_SPEC_WAN_AC -m set --match-set gmlan src -m set ! --match-set china_v4 dst -j SS_SPEC_WAN_FW
|
||||
|
||||
case $MODE in
|
||||
router)$IPT -A SS_SPEC_WAN_AC -m set ! --match-set china_v4 dst -j SS_SPEC_WAN_FW;;
|
||||
oversea)$IPT -A SS_SPEC_WAN_AC -m set --match-set china_v4 dst -j SS_SPEC_WAN_FW;;
|
||||
all)$IPT -A SS_SPEC_WAN_AC -j SS_SPEC_WAN_FW;;
|
||||
esac
|
||||
|
||||
if [ -n "$LAN_AC_IP" ];then
|
||||
ipset -! -R <<-EOF || return 1
|
||||
create ss_spec_lan_ac hash:net
|
||||
$(for ip in ${LAN_AC_IP:1};do echo "add ss_spec_lan_ac $ip";done)
|
||||
EOF
|
||||
case "${LAN_AC_IP:0:1}" in
|
||||
w|W)MATCH_SET="-m set --match-set ss_spec_lan_ac src";;
|
||||
b|B)MATCH_SET="-m set ! --match-set ss_spec_lan_ac src";;
|
||||
esac
|
||||
fi
|
||||
|
||||
$IPT -I PREROUTING 1 -p tcp $MATCH_SET -m comment --comment "$TAG" -j SS_SPEC_WAN_AC
|
||||
$IPT -I OUTPUT 1 -p tcp -m comment --comment "$TAG" -j SS_SPEC_WAN_AC
|
||||
}
|
||||
|
||||
tp_rule(){
|
||||
[ -n "$SERVER" ] || return 0
|
||||
ip rule add fwmark 1 lookup 100
|
||||
ip route add local 0.0.0.0/0 dev lo table 100
|
||||
ipt="iptables -t mangle"
|
||||
$ipt -N SS_SPEC_TPROXY
|
||||
$ipt -A SS_SPEC_TPROXY -p udp -m set ! --match-set china_v4 --dport 443 -j DROP
|
||||
$ipt -A SS_SPEC_TPROXY -p udp --dport 53 -j RETURN
|
||||
$ipt -A SS_SPEC_TPROXY -p udp -d $SERVER -j RETURN
|
||||
$ipt -A SS_SPEC_TPROXY -p udp -m set --match-set ss_spec_wan_ac dst -j RETURN
|
||||
ipset list fplan >/dev/null 2>&1 && $ipt -A SS_SPEC_TPROXY -p udp $PROXY_PORTS -m set --match-set fplan src -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1
|
||||
ipset list blacklist >/dev/null 2>&1 && $ipt -A SS_SPEC_TPROXY -p udp $PROXY_PORTS -m set --match-set blacklist dst -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1
|
||||
ipset list gmlan >/dev/null 2>&1 && $ipt -A SS_SPEC_TPROXY -p udp -m set --match-set gmlan src -m set ! --match-set china_v4 dst -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1
|
||||
|
||||
case $MODE in
|
||||
router)$ipt -A SS_SPEC_TPROXY -p udp $PROXY_PORTS -m set ! --match-set china_v4 dst -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1;;
|
||||
oversea)$ipt -A SS_SPEC_TPROXY -p udp $PROXY_PORTS -m set --match-set china_v4 dst -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1;;
|
||||
all)$ipt -A SS_SPEC_TPROXY -p udp $PROXY_PORTS -j TPROXY --on-port $LOCAL_PORT --tproxy-mark 0x1/0x1;;
|
||||
esac
|
||||
|
||||
ipset -N bypass_all hash:net 2>/dev/null
|
||||
for i in $(ip -4 add show | grep -v $(uci -qP /tmp/state get network.wan.device || echo 127.0.0.1) | grep inet | grep -v 127.0.0.1 | awk '{print$2}');do
|
||||
ipset -! add bypass_all $i
|
||||
done
|
||||
$ipt -I PREROUTING 1 -p udp $MATCH_SET -m set --match-set bypass_all src -m comment --comment "$TAG" -j SS_SPEC_TPROXY
|
||||
}
|
||||
|
||||
gen_include(){
|
||||
extract_rules() {
|
||||
echo "*$2"
|
||||
$1-save -t $2 | grep SS_SPEC_ |\
|
||||
sed -e "s/^-A \(OUTPUT\|PREROUTING\)/-I \1 1/"
|
||||
echo 'COMMIT'
|
||||
}
|
||||
cat <<-EOF >> $FWI
|
||||
iptables-save -c | grep -v "SS_SPEC" | iptables-restore -c
|
||||
iptables-restore -n <<-EOT
|
||||
$(extract_rules iptables nat)
|
||||
$(extract_rules iptables mangle)
|
||||
EOT
|
||||
EOF
|
||||
}
|
||||
|
||||
while getopts ":s:l:S:L:N:P:a:b:w:p:G:D:rczf" arg;do
|
||||
case $arg in
|
||||
s)server=$OPTARG;;
|
||||
l)local_port=$OPTARG;;
|
||||
S)SERVER=$OPTARG;;
|
||||
L)LOCAL_PORT=$OPTARG;;
|
||||
N)NF_SERVER=$OPTARG;;
|
||||
P)NF_PORT=$OPTARG;;
|
||||
a)LAN_AC_IP=$OPTARG;;
|
||||
b)WAN_BP_IP=$(for ip in $OPTARG;do echo $ip;done);;
|
||||
w)WAN_FW_IP=$OPTARG;;
|
||||
p)LAN_FP_IP=$OPTARG;;
|
||||
G)LAN_GM_IP=$OPTARG;;
|
||||
D)PROXY_PORTS=$OPTARG;;
|
||||
r)MODE=router;A=1;;
|
||||
c)MODE=oversea;A=1;;
|
||||
z)MODE=all;;
|
||||
f)flush_r;exit 0;;
|
||||
esac
|
||||
done
|
||||
|
||||
[ -z "$server" -o -z "$local_port" ] && exit 1
|
||||
flush_r;ipset_r && tp_rule && gen_include || exit 1
|
@ -1,248 +0,0 @@
|
||||
#!/bin/sh
|
||||
NAME=bypass
|
||||
S=/usr/share/$NAME
|
||||
|
||||
uci_get_by_name(){
|
||||
w=$(uci -q get $NAME.$1.$2)
|
||||
echo ${w:=$3}
|
||||
}
|
||||
|
||||
uci_get_by_type(){
|
||||
w=$(uci -q get $NAME.@$1[0].$2)
|
||||
echo ${w:=$3}
|
||||
}
|
||||
|
||||
log(){
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') By-Switch : $*" >> /tmp/log/$NAME.log
|
||||
}
|
||||
|
||||
get_ip(){
|
||||
if ! echo $ip | grep -E "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$">/dev/null;then
|
||||
r=1
|
||||
while ! nslookup $ip 127.0.0.1:5336 >/dev/null 2>&1;do
|
||||
[ $r -ge 10 ] && return 1 || let r++
|
||||
sleep 1
|
||||
done
|
||||
ip=$(nslookup $ip 127.0.0.1:5336 2>/dev/null | grep Address | awk -F' ' '{print$NF}' | grep -E "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$");i=$?
|
||||
ip=$(echo "$ip" | sed -n 1p)
|
||||
fi
|
||||
return $i
|
||||
}
|
||||
|
||||
f_bin(){
|
||||
case $1 in
|
||||
ss)w=$(which ss-local);;
|
||||
ssr)w=$(which ssr-local);;
|
||||
v2ray)w=$(which xray)||w=$(which r2ray);;
|
||||
trojan)w=$(which trojan-plus);;
|
||||
naiveproxy)w=$(which naive);;
|
||||
esac
|
||||
echo ${w:=0}
|
||||
}
|
||||
|
||||
gen_port(){
|
||||
lport=1090
|
||||
while [ $(netstat -tln | grep -c :$lport) != 0 ];do let lport++;done
|
||||
}
|
||||
|
||||
gen_config_file(){
|
||||
pass=$(uci_get_by_name $1 password)
|
||||
timeout=$(uci_get_by_name $1 timeout 60)
|
||||
[ $(uci_get_by_name $1 fast_open 0) = 1 ] && fast=true || fast=false
|
||||
case $type in
|
||||
ss)
|
||||
cat <<-EOF > $J
|
||||
{
|
||||
"server":"$ip",
|
||||
"server_port":$port,
|
||||
"local_address":"0.0.0.0",
|
||||
"local_port":$lport,
|
||||
"password":"$pass",
|
||||
"timeout":$timeout,
|
||||
"method":"$(uci_get_by_name $1 encrypt_method_ss)",
|
||||
"reuse_port":true,
|
||||
"fast_open":$fast
|
||||
}
|
||||
EOF
|
||||
plugin=$(uci_get_by_name $1 plugin 0)
|
||||
if [ $plugin != 0 -a -x "$(which $plugin)" ];then
|
||||
sed -i "s@$ip\",@$ip\",\n\"plugin\":\"$plugin\",\n\"plugin_opts\":\"$(uci_get_by_name $1 plugin_opts)\",@" $J
|
||||
fi;;
|
||||
ssr)
|
||||
cat <<-EOF > $J
|
||||
{
|
||||
"server":"$ip",
|
||||
"server_port":$port,
|
||||
"local_address":"0.0.0.0",
|
||||
"local_port":$lport,
|
||||
"password":"$pass",
|
||||
"timeout":$timeout,
|
||||
"method":"$(uci_get_by_name $1 encrypt_method)",
|
||||
"protocol":"$(uci_get_by_name $1 protocol)",
|
||||
"protocol_param":"$(uci_get_by_name $1 protocol_param)",
|
||||
"obfs":"$(uci_get_by_name $1 obfs)",
|
||||
"obfs_param":"$(uci_get_by_name $1 obfs_param)",
|
||||
"reuse_port":true,
|
||||
"fast_open":$fast
|
||||
}
|
||||
EOF
|
||||
;;
|
||||
naiveproxy)
|
||||
cat <<-EOF > $J
|
||||
{
|
||||
"listen":"socks://0.0.0.0:$lport",
|
||||
"proxy":"https://$(uci_get_by_name $1 username):$pass@$(uci_get_by_name $1 server):$port",
|
||||
"concurrency":"${3:-1}"
|
||||
}
|
||||
EOF
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
curl_check(){
|
||||
if [ $(uci_get_by_name $1 kcp_enable 0) = 1 ];then
|
||||
log "Skip KCPTUN Node!";return 1
|
||||
fi
|
||||
type=$(uci_get_by_name $1 type)
|
||||
if [ $type = tun ];then
|
||||
curl --interface $(uci_get_by_name $1 iface br-lan) --resolve dns.google:443:8.8.8.8 -so /dev/null --connect-timeout 20 https://dns.google;return $?
|
||||
elif [ $type != socks5 ];then
|
||||
cmd=$(f_bin $type)
|
||||
if [ ! -x $cmd ];then
|
||||
[ $type = ss -o $type = ssr ] && type=$type-local
|
||||
log "Can't find $(echo $type) program, Skip this Node($($UCI$1.alias || uci_get_by_name $1 server))."
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
gen_port
|
||||
J=/var/etc/$NAME/by-socks5-check.json
|
||||
gen_config_file $1
|
||||
IP=127.0.0.1
|
||||
param=
|
||||
case $type in
|
||||
ss|ssr)
|
||||
$cmd -c $J >/dev/null 2>&1 &;;
|
||||
v2ray|hysteria)
|
||||
$S/gen_config $1 tcp 0 $lport $ip > $J
|
||||
sed -i 's/\\//g' $J
|
||||
$cmd -c $J >/dev/null 2>&1 &;;
|
||||
trojan)
|
||||
$S/gen_config $1 client $lport $ip > $J
|
||||
sed -i 's/\\//g' $J
|
||||
$cmd --config $J >/dev/null 2>&1 &;;
|
||||
naiveproxy)
|
||||
$cmd $J 2>&1 &;;
|
||||
socks5)IP=$ip
|
||||
if [ $(uci_get_by_name $1 auth_enable 0) = 1 ];then
|
||||
username=$(uci_get_by_name $1 username)
|
||||
if [ -n "$username" ];then
|
||||
param="-U $username:$(uci_get_by_name $1 password)"
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
fi;;
|
||||
esac
|
||||
r=1
|
||||
while [ $(netstat -tlnp | grep ${cmd##*/} | grep -c :$lport) = 0 ];do
|
||||
[ $r -ge 10 ] && return 1 || let r++
|
||||
sleep 1
|
||||
done
|
||||
curl -x socks5://$IP:$lport $param --resolve dns.google:443:8.8.8.8 -so /dev/null --connect-timeout 20 https://dns.google;i=$?
|
||||
kill -9 $(ps -w | grep $J | grep -v grep | awk '{print$1}') 2>/dev/null
|
||||
rm -f $J
|
||||
[ $i = 0 ] || log "Server : $($UCI$1.alias || uci_get_by_name $1 server) cURL check error, Try to switch another server."
|
||||
return $i
|
||||
}
|
||||
|
||||
test_proxy(){
|
||||
ip=$(uci_get_by_name $1 server)
|
||||
get_ip || return 1
|
||||
port=$(uci_get_by_name $1 server_port)
|
||||
ipset add ss_spec_wan_ac $ip 2>/dev/null
|
||||
a=$?
|
||||
b=$(tcping -c $time_b -i 1 -t 2 -p $port $ip 2>/dev/null | grep 'failed' | awk -F ',' '{print$3}' | awk -F . '{print$1}')
|
||||
if [ -z "$b" -o "$b" -gt 50 ];then
|
||||
b=1
|
||||
else
|
||||
curl_check $1;b=$?
|
||||
fi
|
||||
[ $a = 0 ] && ipset del ss_spec_wan_ac $ip 2>/dev/null
|
||||
return $b
|
||||
}
|
||||
|
||||
check_proxy(){
|
||||
for i in $(seq 1 $(uci_get_by_type global switch_try_count 3));do
|
||||
curl -so /dev/null --connect-timeout $time_b https://www.google.com && return 0
|
||||
curl -so /dev/null --connect-timeout $time_b https://www.baidu.com && a=1 || a=2
|
||||
sleep 1
|
||||
done
|
||||
return $a
|
||||
}
|
||||
|
||||
select_proxy(){
|
||||
SERVER_C=0
|
||||
a=$(uci -X show $NAME | grep =servers)
|
||||
b=$(echo "$a" | wc -l)
|
||||
[ $c -ge $b ] && c=1
|
||||
for i in $(seq $c $b);do
|
||||
d=$(echo "$a" | sed 's/.*\.\(.*\)=.*/\1/' | sed -n ${i}p)
|
||||
([ $d = $SERVER_B ] || [ $(uci_get_by_name $d switch_enable 0) != 1 ]) && continue
|
||||
ip=$(uci_get_by_name $d server)
|
||||
get_ip || continue
|
||||
port=$(uci_get_by_name $d server_port)
|
||||
ipset add ss_spec_wan_ac $ip 2>/dev/null
|
||||
x=$?
|
||||
$S/by-check $ip $port $time_b && curl_check $d
|
||||
y=$?
|
||||
[ $x = 0 ] && ipset del ss_spec_wan_ac $ip 2>/dev/null
|
||||
if [ $y = 0 ];then
|
||||
SERVER_C=$d
|
||||
c=$i
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
switch_proxy(){
|
||||
/etc/init.d/$NAME restart $SERVER_B
|
||||
}
|
||||
|
||||
[ "$1" = start ] || exit 1
|
||||
SERVER_A=$(uci_get_by_type global global_server)
|
||||
SERVER_B=$SERVER_A
|
||||
[ $(uci_get_by_name $SERVER_A kcp_enable 0) = 1 ] && exit 1
|
||||
c=1
|
||||
time_a=$(uci_get_by_type global switch_time 300)
|
||||
time_b=$(uci_get_by_type global switch_timeout 5)
|
||||
UCI="uci -q get $NAME."
|
||||
sleep 10
|
||||
while :;do
|
||||
if [ $SERVER_A != $SERVER_B ];then
|
||||
log "Current server : $($UCI$SERVER_B.alias || uci_get_by_name $SERVER_B server) is not main server, Try to switch back to $($UCI$SERVER_A.alias || uci_get_by_name $SERVER_A server)."
|
||||
if test_proxy $SERVER_A;then
|
||||
log "Main server is available. Switch to main server."
|
||||
SERVER_B=$SERVER_A
|
||||
switch_proxy
|
||||
continue
|
||||
else
|
||||
log "Main server is not available. Continue using current server."
|
||||
fi
|
||||
fi
|
||||
check_proxy
|
||||
a=$?
|
||||
if [ $a = 1 ];then
|
||||
log "Current server : $($UCI$SERVER_B.alias || uci_get_by_name $SERVER_B server) error.Try to switch another server."
|
||||
select_proxy
|
||||
if [ $SERVER_C != 0 ];then
|
||||
log "Another server : $($UCI$SERVER_C.alias || uci_get_by_name $SERVER_C server) is available.Now switching server."
|
||||
SERVER_B=$SERVER_C
|
||||
switch_proxy
|
||||
else
|
||||
log "No server available. Try restart current server."
|
||||
switch_proxy
|
||||
fi
|
||||
elif [ $a = 2 ];then
|
||||
log "Network Problem. Do nothing."
|
||||
fi
|
||||
sleep $time_a
|
||||
done
|
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
[ "$1" = check ] || exit 1
|
||||
NAME=bypass
|
||||
|
||||
log(){
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') : $*" >> /var/log/$NAME.log
|
||||
}
|
||||
|
||||
while ! curl -so /dev/null -m 3 www.baidu.com;do
|
||||
log "请检查网络..."
|
||||
sleep 2
|
||||
done
|
||||
/etc/init.d/$NAME start &
|
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
if [ "$1" = v6 ];then
|
||||
ipset -N china_v6 hash:net family inet6 2>/dev/null
|
||||
awk '!/^$/&&!/^#/{printf("add china_v6 %s'" "'\n",$0)}' /etc/bypass/china_v6.txt > /tmp/china_v6.ipset
|
||||
ipset -F china_v6 2>/dev/null
|
||||
ipset -R < /tmp/china_v6.ipset 2>/dev/null
|
||||
else
|
||||
ipset -N china_v4 hash:net 2>/dev/null
|
||||
awk '!/^$/&&!/^#/{printf("add china_v4 %s'" "'\n",$0)}' /etc/bypass/china.txt > /tmp/china.ipset
|
||||
ipset -F china_v4 2>/dev/null
|
||||
ipset -R < /tmp/china.ipset 2>/dev/null
|
||||
fi
|
||||
rm -f /tmp/china*.ipset
|
@ -1,376 +0,0 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local ucursor = require "luci.model.uci".cursor()
|
||||
local json = require "luci.jsonc"
|
||||
|
||||
local server_section = arg[1]
|
||||
local proto = arg[2]
|
||||
local local_port = arg[3] or "0"
|
||||
local socks_port = arg[4] or "0"
|
||||
local ip_addr = arg[5]
|
||||
|
||||
local server = ucursor:get_all("bypass", server_section)
|
||||
local outbound_settings = nil
|
||||
|
||||
local tls_host = (server.tls_host) and server.tls_host or server.server
|
||||
function vmess_vless()
|
||||
outbound_settings = {
|
||||
vnext = {
|
||||
{
|
||||
address = ip_addr,
|
||||
port = tonumber(server.server_port),
|
||||
users = {
|
||||
{
|
||||
id = server.vmess_id,
|
||||
security = (server.v2ray_protocol == "vmess" or not server.v2ray_protocol) and server.security or nil,
|
||||
encryption = (server.v2ray_protocol == "vless") and server.vless_encryption or nil,
|
||||
flow = ((server.tls == '1') or (server.reality == '1')) and server.tls_flow or nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
function trojan_shadowsocks()
|
||||
outbound_settings = {
|
||||
servers = {
|
||||
{
|
||||
address = ip_addr,
|
||||
port = tonumber(server.server_port),
|
||||
password = server.password,
|
||||
method = ((server.v2ray_protocol == "shadowsocks") and server.encrypt_method_ss) or nil,
|
||||
uot = (server.v2ray_protocol == "shadowsocks") and (server.uot == '1') or nil,
|
||||
ivCheck = (server.v2ray_protocol == "shadowsocks") and (server.ivCheck == '1') or nil,
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
function socks_http()
|
||||
outbound_settings = {
|
||||
version = server.socks_ver or nil,
|
||||
servers = {
|
||||
{
|
||||
address = ip_addr,
|
||||
port = tonumber(server.server_port),
|
||||
users = (server.auth_enable == "1") and {
|
||||
{
|
||||
user = server.username,
|
||||
pass = server.password
|
||||
}
|
||||
} or nil
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
function wireguard()
|
||||
outbound_settings = {
|
||||
secretKey = server.private_key,
|
||||
address = ip_addr,
|
||||
peers = {
|
||||
{
|
||||
publicKey = server.peer_pubkey,
|
||||
preSharedKey = server.preshared_key,
|
||||
endpoint = server.server .. ":" .. server.server_port
|
||||
}
|
||||
},
|
||||
mtu = tonumber(server.mtu)
|
||||
}
|
||||
end
|
||||
local outbound = {}
|
||||
function outbound:new(o)
|
||||
o = o or {}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
return o
|
||||
end
|
||||
function outbound:handleIndex(index)
|
||||
local switch = {
|
||||
vmess = function()
|
||||
vmess_vless()
|
||||
end,
|
||||
vless = function()
|
||||
vmess_vless()
|
||||
end,
|
||||
trojan = function()
|
||||
trojan_shadowsocks()
|
||||
end,
|
||||
shadowsocks = function()
|
||||
trojan_shadowsocks()
|
||||
end,
|
||||
socks = function()
|
||||
socks_http()
|
||||
end,
|
||||
http = function()
|
||||
socks_http()
|
||||
end,
|
||||
wireguard = function()
|
||||
wireguard()
|
||||
end
|
||||
}
|
||||
if switch[index] then
|
||||
switch[index]()
|
||||
end
|
||||
end
|
||||
local settings = outbound:new()
|
||||
settings:handleIndex(server.v2ray_protocol)
|
||||
local Xray = {
|
||||
log = {
|
||||
-- error = "/var/ssrplus.log",
|
||||
loglevel = "warning"
|
||||
},
|
||||
-- 传入连接
|
||||
inbound = (local_port ~= "0") and {
|
||||
-- listening
|
||||
port = tonumber(local_port),
|
||||
protocol = "dokodemo-door",
|
||||
settings = {network = proto, followRedirect = true},
|
||||
sniffing = {enabled = true, destOverride = {"http", "tls"}}
|
||||
} or nil,
|
||||
-- 开启 socks 代理
|
||||
inboundDetour = (proto:find("tcp") and socks_port ~= "0") and {
|
||||
{
|
||||
-- socks
|
||||
protocol = "socks",
|
||||
port = tonumber(socks_port),
|
||||
settings = {auth = "noauth", udp = true}
|
||||
}
|
||||
} or nil,
|
||||
-- 传出连接
|
||||
outbound = {
|
||||
protocol = server.v2ray_protocol,
|
||||
settings = outbound_settings,
|
||||
-- 底层传输配置
|
||||
streamSettings = {
|
||||
network = server.transport or "tcp",
|
||||
security = (server.tls == '1') and "tls" or (server.reality == '1') and "reality" or nil,
|
||||
tlsSettings = (server.tls == '1') and {
|
||||
-- tls
|
||||
alpn = server.tls_alpn,
|
||||
fingerprint = server.fingerprint,
|
||||
allowInsecure = (server.insecure == "1"),
|
||||
serverName = tls_host,
|
||||
certificates = server.certificate and {
|
||||
usage = "verify",
|
||||
certificateFile = server.certpath
|
||||
} or nil
|
||||
} or nil,
|
||||
realitySettings = (server.reality == '1') and {
|
||||
show = false,
|
||||
publicKey = server.reality_publickey,
|
||||
shortId = server.reality_shortid,
|
||||
spiderX = server.reality_spiderx,
|
||||
fingerprint = server.fingerprint,
|
||||
serverName = tls_host
|
||||
} or nil,
|
||||
tcpSettings = (server.transport == "tcp" and server.tcp_guise == "http") and {
|
||||
-- tcp
|
||||
header = {
|
||||
type = server.tcp_guise,
|
||||
request = {
|
||||
-- request
|
||||
path = {server.http_path} or {"/"},
|
||||
headers = {Host = {server.http_host} or {}}
|
||||
}
|
||||
}
|
||||
} or nil,
|
||||
kcpSettings = (server.transport == "kcp") and {
|
||||
mtu = tonumber(server.mtu),
|
||||
tti = tonumber(server.tti),
|
||||
uplinkCapacity = tonumber(server.uplink_capacity),
|
||||
downlinkCapacity = tonumber(server.downlink_capacity),
|
||||
congestion = (server.congestion == "1") and true or false,
|
||||
readBufferSize = tonumber(server.read_buffer_size),
|
||||
writeBufferSize = tonumber(server.write_buffer_size),
|
||||
header = {type = server.kcp_guise},
|
||||
seed = server.seed or nil
|
||||
} or nil,
|
||||
wsSettings = (server.transport == "ws") and (server.ws_path or server.ws_host or tls_host) and {
|
||||
-- ws
|
||||
headers = (server.ws_host or tls_host) and {
|
||||
-- headers
|
||||
Host = server.ws_host or tls_host
|
||||
} or nil,
|
||||
path = server.ws_path,
|
||||
maxEarlyData = tonumber(server.ws_ed) or nil,
|
||||
earlyDataHeaderName = server.ws_ed_header or nil
|
||||
} or nil,
|
||||
httpSettings = (server.transport == "h2") and {
|
||||
-- h2
|
||||
path = server.h2_path or "",
|
||||
host = {server.h2_host} or nil,
|
||||
read_idle_timeout = tonumber(server.read_idle_timeout) or nil,
|
||||
health_check_timeout = tonumber(server.health_check_timeout) or nil
|
||||
} or nil,
|
||||
quicSettings = (server.transport == "quic") and {
|
||||
-- quic
|
||||
security = server.quic_security,
|
||||
key = server.quic_key,
|
||||
header = {type = server.quic_guise}
|
||||
} or nil,
|
||||
grpcSettings = (server.transport == "grpc") and {
|
||||
-- grpc
|
||||
serviceName = server.serviceName or "",
|
||||
multiMode = (server.grpc_mode == "multi") and true or false,
|
||||
idle_timeout = tonumber(server.idle_timeout) or nil,
|
||||
health_check_timeout = tonumber(server.health_check_timeout) or nil,
|
||||
permit_without_stream = (server.permit_without_stream == "1") and true or nil,
|
||||
initial_windows_size = tonumber(server.initial_windows_size) or nil
|
||||
} or nil
|
||||
},
|
||||
mux = (server.mux == "1" and server.transport ~= "grpc") and {
|
||||
-- mux
|
||||
enabled = true,
|
||||
concurrency = tonumber(server.concurrency)
|
||||
} or nil
|
||||
} or nil
|
||||
}
|
||||
local cipher = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-SHA:AES256-SHA:DES-CBC3-SHA"
|
||||
local cipher13 = "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384"
|
||||
local trojan = {
|
||||
log_level = 3,
|
||||
run_type = (proto == "nat" or proto == "tcp") and "nat" or "client",
|
||||
local_addr = "0.0.0.0",
|
||||
local_port = tonumber(local_port),
|
||||
remote_addr = ip_addr,
|
||||
remote_port = tonumber(server.server_port),
|
||||
udp_timeout = 60,
|
||||
-- 传入连接
|
||||
password = {server.password},
|
||||
-- 传出连接
|
||||
ssl = {
|
||||
verify = (server.insecure == "0") and true or false,
|
||||
verify_hostname = (server.tls == "1") and true or false,
|
||||
cert = (server.certificate) and server.certpath or nil,
|
||||
cipher = cipher,
|
||||
cipher_tls13 = cipher13,
|
||||
sni = tls_host,
|
||||
alpn = server.tls_alpn or {"h2", "http/1.1"},
|
||||
curve = "",
|
||||
reuse_session = true,
|
||||
session_ticket = (server.tls_sessionTicket == "1") and true or false
|
||||
},
|
||||
udp_timeout = 60,
|
||||
tcp = {
|
||||
-- tcp
|
||||
no_delay = true,
|
||||
keep_alive = true,
|
||||
reuse_port = true,
|
||||
fast_open = (server.fast_open == "1") and true or false,
|
||||
fast_open_qlen = 20
|
||||
}
|
||||
}
|
||||
local naiveproxy = {
|
||||
proxy = (server.username and server.password and server.server and server.server_port) and "https://" .. server.username .. ":" .. server.password .. "@" .. ip_addr .. ":" .. server.server_port,
|
||||
listen = (proto == "redir") and "redir" .. "://0.0.0.0:" .. tonumber(local_port) or "socks" .. "://0.0.0.0:" .. tonumber(local_port),
|
||||
["insecure-concurrency"] = tonumber(server.concurrency) or 1
|
||||
}
|
||||
local ss = {
|
||||
server = (server.kcp_enable == "1") and "127.0.0.1" or ip_addr,
|
||||
server_port = tonumber(server.server_port),
|
||||
local_address = "0.0.0.0",
|
||||
local_port = tonumber(local_port),
|
||||
mode = (proto == "tcp,udp") and "tcp_and_udp" or proto .. "_only",
|
||||
password = server.password,
|
||||
method = server.encrypt_method_ss,
|
||||
timeout = tonumber(server.timeout),
|
||||
fast_open = (server.fast_open == "1") and true or false,
|
||||
reuse_port = true
|
||||
}
|
||||
local hysteria = {
|
||||
server = ip_addr .. ":" .. server.server_port,
|
||||
protocol = server.hysteria_protocol,
|
||||
up_mbps = tonumber(server.uplink_capacity),
|
||||
down_mbps = tonumber(server.downlink_capacity),
|
||||
socks5 = (proto:find("tcp") and tonumber(socks_port) and tonumber(socks_port) ~= 0) and {
|
||||
listen = "0.0.0.0:" .. tonumber(socks_port),
|
||||
timeout = 300,
|
||||
disable_udp = false
|
||||
} or nil,
|
||||
redirect_tcp = (proto:find("tcp") and local_port ~= "0") and {
|
||||
listen = "0.0.0.0:" .. tonumber(local_port),
|
||||
timeout = 300
|
||||
} or nil,
|
||||
tproxy_udp = (proto:find("udp") and local_port ~= "0") and {
|
||||
listen = "0.0.0.0:" .. tonumber(local_port),
|
||||
timeout = 60
|
||||
} or nil,
|
||||
obfs = server.seed,
|
||||
auth = (server.auth_type == "1") and server.auth_payload or nil,
|
||||
auth_str = (server.auth_type == "2") and server.auth_payload or nil,
|
||||
alpn = server.quic_tls_alpn,
|
||||
server_name = tls_host,
|
||||
insecure = (server.insecure == "1") and true or false,
|
||||
ca = (server.certificate) and server.certpath or nil,
|
||||
recv_window_conn = tonumber(server.recv_window_conn),
|
||||
recv_window = tonumber(server.recv_window),
|
||||
disable_mtu_discovery = (server.disable_mtu_discovery == "1") and true or false,
|
||||
fast_open = (server.fast_open == "1") and true or false,
|
||||
lazy_start = (server.lazy_start == "1") and true or false
|
||||
}
|
||||
local tuic = {
|
||||
relay = {
|
||||
server = server.server,
|
||||
port = tonumber(server.server_port),
|
||||
token = server.password,
|
||||
|
||||
certificates = server.certificate and { server.certpath } or nil,
|
||||
udp_relay_mode = server.udp_relay_mode,
|
||||
congestion_controller = server.congestion_controller,
|
||||
heartbeat_interval = tonumber(server.heartbeat_interval),
|
||||
alpn = server.tls_alpn,
|
||||
disable_sni = (server.disable_sni == "1"),
|
||||
reduce_rtt = (server.reduce_rtt == "1"),
|
||||
max_udp_relay_packet_size = tonumber(server.max_udp_relay_packet_size)
|
||||
},
|
||||
["local"] = {
|
||||
port = tonumber(local_port),
|
||||
ip = "0.0.0.0"
|
||||
}
|
||||
}
|
||||
local config = {}
|
||||
function config:new(o)
|
||||
o = o or {}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
return o
|
||||
end
|
||||
function config:handleIndex(index)
|
||||
local switch = {
|
||||
ss = function()
|
||||
ss.protocol = socks_port
|
||||
if server.plugin and server.plugin ~= "none" then
|
||||
ss.plugin = server.plugin
|
||||
ss.plugin_opts = server.plugin_opts or nil
|
||||
end
|
||||
print(json.stringify(ss, 1))
|
||||
end,
|
||||
ssr = function()
|
||||
ss.protocol = server.protocol
|
||||
ss.protocol_param = server.protocol_param
|
||||
ss.method = server.encrypt_method
|
||||
ss.obfs = server.obfs
|
||||
ss.obfs_param = server.obfs_param
|
||||
print(json.stringify(ss, 1))
|
||||
end,
|
||||
v2ray = function()
|
||||
print(json.stringify(Xray, 1))
|
||||
end,
|
||||
trojan = function()
|
||||
print(json.stringify(trojan, 1))
|
||||
end,
|
||||
naiveproxy = function()
|
||||
print(json.stringify(naiveproxy, 1))
|
||||
end,
|
||||
hysteria = function()
|
||||
print(json.stringify(hysteria, 1))
|
||||
end,
|
||||
tuic = function()
|
||||
print(json.stringify(tuic, 1))
|
||||
end
|
||||
}
|
||||
if switch[index] then
|
||||
switch[index]()
|
||||
end
|
||||
end
|
||||
local f = config:new()
|
||||
f:handleIndex(server.type)
|
@ -1,72 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<-EOF >$1
|
||||
base {
|
||||
log_debug=off;
|
||||
log_info=off;
|
||||
log=stderr;
|
||||
daemon=on;
|
||||
redirector=iptables;
|
||||
reuseport=on;
|
||||
}
|
||||
EOF
|
||||
|
||||
if [ "$2" == "socks5" ];then
|
||||
if [ "$3" == "tcp" ];then
|
||||
if [ "$7" == "0" ];then
|
||||
cat <<-EOF >>$1
|
||||
redsocks {
|
||||
bind="0.0.0.0:$4";
|
||||
relay="$5:$6";
|
||||
type=socks5;
|
||||
autoproxy=0;
|
||||
timeout=10;
|
||||
}
|
||||
EOF
|
||||
else
|
||||
cat <<-EOF >>$1
|
||||
redsocks {
|
||||
bind="0.0.0.0:$4";
|
||||
relay="$5:$6";
|
||||
type=socks5;
|
||||
autoproxy=0;
|
||||
timeout=10;
|
||||
login="$8";
|
||||
password="$9";
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
else
|
||||
if [ "$7" == "0" ];then
|
||||
cat <<-EOF >>$1
|
||||
redudp {
|
||||
bind="0.0.0.0:$4";
|
||||
relay="$5:$6";
|
||||
type=socks5;
|
||||
udp_timeout=10;
|
||||
}
|
||||
EOF
|
||||
else
|
||||
cat <<-EOF >>$1
|
||||
redudp {
|
||||
bind="0.0.0.0:$4";
|
||||
relay="$5:$6";
|
||||
type=socks5;
|
||||
udp_timeout=10;
|
||||
login="$8";
|
||||
password="$9";
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
else
|
||||
cat <<-EOF >>$1
|
||||
redsocks {
|
||||
bind="0.0.0.0:$4";
|
||||
type=direct;
|
||||
interface=$3;
|
||||
autoproxy=0;
|
||||
timeout=10;
|
||||
}
|
||||
EOF
|
||||
fi
|
@ -1,631 +0,0 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
------------------------------------------------
|
||||
-- This file is part of the luci-app-bypass subscribe.lua
|
||||
-- @author William Chan <root@williamchan.me>
|
||||
------------------------------------------------
|
||||
require "luci.model.uci"
|
||||
require "nixio"
|
||||
require "luci.util"
|
||||
require "luci.sys"
|
||||
require "luci.jsonc"
|
||||
require "luci.model.ipkg"
|
||||
-- these global functions are accessed all the time by the event handler
|
||||
-- so caching them is worth the effort
|
||||
local tinsert = table.insert
|
||||
local ssub, slen, schar, sbyte, sformat, sgsub = string.sub, string.len, string.char, string.byte, string.format, string.gsub
|
||||
local jsonParse, jsonStringify = luci.jsonc.parse, luci.jsonc.stringify
|
||||
local b64decode = nixio.bin.b64decode
|
||||
local URL = require "url"
|
||||
local cache = {}
|
||||
local nodeResult = setmetatable({}, {__index = cache}) -- update result
|
||||
local name = 'bypass'
|
||||
local uciType = 'servers'
|
||||
local ucic = luci.model.uci.cursor()
|
||||
local proxy = ucic:get_first(name, 'server_subscribe', 'proxy', '0')
|
||||
local switch = ucic:get_first(name, 'server_subscribe', 'switch', '1')
|
||||
local subscribe_url = ucic:get_first(name, 'server_subscribe', 'subscribe_url', {})
|
||||
local filter_words = ucic:get_first(name, 'server_subscribe', 'filter_words', '过期时间/剩余流量')
|
||||
local save_words = ucic:get_first(name, 'server_subscribe', 'save_words', '')
|
||||
local v2_ss = luci.sys.exec('type -t -p ss-redir sslocal') ~= "" and "ss" or "v2ray"
|
||||
local v2_tj = luci.sys.exec('type -t -p trojan') ~= "" and "trojan" or "v2ray"
|
||||
local log = function(...)
|
||||
print(os.date("%Y-%m-%d %H:%M:%S ") .. table.concat({...}, " "))
|
||||
end
|
||||
local encrypt_methods_ss = {
|
||||
-- plain
|
||||
"none",
|
||||
"plain",
|
||||
-- aead
|
||||
"aes-128-gcm",
|
||||
"aes-192-gcm",
|
||||
"aes-256-gcm",
|
||||
"chacha20-ietf-poly1305",
|
||||
"xchacha20-ietf-poly1305",
|
||||
-- aead 2022
|
||||
"2022-blake3-aes-128-gcm",
|
||||
"2022-blake3-aes-256-gcm",
|
||||
"2022-blake3-chacha20-poly1305"
|
||||
--[[ stream
|
||||
"table",
|
||||
"rc4",
|
||||
"rc4-md5",
|
||||
"aes-128-cfb",
|
||||
"aes-192-cfb",
|
||||
"aes-256-cfb",
|
||||
"aes-128-ctr",
|
||||
"aes-192-ctr",
|
||||
"aes-256-ctr",
|
||||
"bf-cfb",
|
||||
"camellia-128-cfb",
|
||||
"camellia-192-cfb",
|
||||
"camellia-256-cfb",
|
||||
"salsa20",
|
||||
"chacha20",
|
||||
"chacha20-ietf" ]]
|
||||
}
|
||||
-- 分割字符串
|
||||
local function split(full, sep)
|
||||
full = full:gsub("%z", "") -- 这里不是很清楚 有时候结尾带个\0
|
||||
local off, result = 1, {}
|
||||
while true do
|
||||
local nStart, nEnd = full:find(sep, off)
|
||||
if not nEnd then
|
||||
local res = ssub(full, off, slen(full))
|
||||
if #res > 0 then -- 过滤掉 \0
|
||||
tinsert(result, res)
|
||||
end
|
||||
break
|
||||
else
|
||||
tinsert(result, ssub(full, off, nStart - 1))
|
||||
off = nEnd + 1
|
||||
end
|
||||
end
|
||||
return result
|
||||
end
|
||||
-- urlencode
|
||||
local function get_urlencode(c)
|
||||
return sformat("%%%02X", sbyte(c))
|
||||
end
|
||||
|
||||
local function urlEncode(szText)
|
||||
local str = szText:gsub("([^0-9a-zA-Z ])", get_urlencode)
|
||||
str = str:gsub(" ", "+")
|
||||
return str
|
||||
end
|
||||
|
||||
local function get_urldecode(h)
|
||||
return schar(tonumber(h, 16))
|
||||
end
|
||||
local function UrlDecode(szText)
|
||||
return szText:gsub("+", " "):gsub("%%(%x%x)", get_urldecode)
|
||||
end
|
||||
|
||||
-- trim
|
||||
local function trim(text)
|
||||
if not text or text == "" then
|
||||
return ""
|
||||
end
|
||||
return (sgsub(text, "^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
-- md5
|
||||
local function md5(content)
|
||||
local stdout = luci.sys.exec('echo \"' .. urlEncode(content) .. '\" | md5sum | cut -d \" \" -f1')
|
||||
-- assert(nixio.errno() == 0)
|
||||
return trim(stdout)
|
||||
end
|
||||
-- base64
|
||||
local function base64Decode(text)
|
||||
local raw = text
|
||||
if not text then
|
||||
return ''
|
||||
end
|
||||
text = text:gsub("%z", "")
|
||||
text = text:gsub("_", "/")
|
||||
text = text:gsub("-", "+")
|
||||
local mod4 = #text % 4
|
||||
text = text .. string.sub('====', mod4 + 1)
|
||||
local result = b64decode(text)
|
||||
if result then
|
||||
return result:gsub("%z", "")
|
||||
else
|
||||
return raw
|
||||
end
|
||||
end
|
||||
-- 检查数组(table)中是否存在某个字符值
|
||||
-- https://www.04007.cn/article/135.html
|
||||
local function checkTabValue(tab)
|
||||
local revtab = {}
|
||||
for k,v in pairs(tab) do
|
||||
revtab[v] = true
|
||||
end
|
||||
return revtab
|
||||
end
|
||||
-- 处理数据
|
||||
local function processData(szType, content)
|
||||
local result = {type = szType, local_port = 1234, kcp_param = '--nocomp'}
|
||||
if szType == 'ssr' then
|
||||
local dat = split(content, "/%?")
|
||||
local hostInfo = split(dat[1], ':')
|
||||
result.type = 'ssr'
|
||||
result.server = hostInfo[1]
|
||||
result.server_port = hostInfo[2]
|
||||
result.protocol = hostInfo[3]
|
||||
result.encrypt_method = hostInfo[4]
|
||||
result.obfs = hostInfo[5]
|
||||
result.password = base64Decode(hostInfo[6])
|
||||
local params = {}
|
||||
for _, v in pairs(split(dat[2], '&')) do
|
||||
local t = split(v, '=')
|
||||
params[t[1]] = t[2]
|
||||
end
|
||||
result.obfs_param = base64Decode(params.obfsparam)
|
||||
result.protocol_param = base64Decode(params.protoparam)
|
||||
local group = base64Decode(params.group)
|
||||
if group then
|
||||
result.alias = "[" .. group .. "] "
|
||||
end
|
||||
result.alias = result.alias .. base64Decode(params.remarks)
|
||||
elseif szType == 'vmess' then
|
||||
local info = jsonParse(content)
|
||||
result.type = 'v2ray'
|
||||
result.v2ray_protocol = 'vmess'
|
||||
result.server = info.add
|
||||
result.server_port = info.port
|
||||
result.transport = info.net
|
||||
result.vmess_id = info.id
|
||||
result.alias = info.ps
|
||||
-- result.mux = 1
|
||||
-- result.concurrency = 8
|
||||
if info.net == 'ws' then
|
||||
result.ws_host = info.host
|
||||
result.ws_path = info.path
|
||||
end
|
||||
if info.net == 'h2' then
|
||||
result.h2_host = info.host
|
||||
result.h2_path = info.path
|
||||
end
|
||||
if info.net == 'tcp' then
|
||||
if info.type and info.type ~= "http" then
|
||||
info.type = "none"
|
||||
end
|
||||
result.tcp_guise = info.type
|
||||
result.http_host = info.host
|
||||
result.http_path = info.path
|
||||
end
|
||||
if info.net == 'kcp' then
|
||||
result.kcp_guise = info.type
|
||||
result.mtu = 1350
|
||||
result.tti = 50
|
||||
result.uplink_capacity = 5
|
||||
result.downlink_capacity = 20
|
||||
result.read_buffer_size = 2
|
||||
result.write_buffer_size = 2
|
||||
end
|
||||
if info.net == 'grpc' then
|
||||
if info.path then
|
||||
result.serviceName = info.path
|
||||
elseif info.serviceName then
|
||||
result.serviceName = info.serviceName
|
||||
end
|
||||
end
|
||||
if info.net == 'quic' then
|
||||
result.quic_guise = info.type
|
||||
result.quic_key = info.key
|
||||
result.quic_security = info.securty
|
||||
end
|
||||
if info.security then
|
||||
result.security = info.security
|
||||
end
|
||||
if info.tls == "tls" or info.tls == "1" then
|
||||
result.tls = "1"
|
||||
if info.sni and info.sni ~= "" then
|
||||
result.tls_host = info.sni
|
||||
elseif info.host then
|
||||
result.tls_host = info.host
|
||||
end
|
||||
result.insecure = 1
|
||||
else
|
||||
result.tls = "0"
|
||||
end
|
||||
-- https://www.v2fly.org/config/protocols/vmess.html#vmess-md5-认证信息-淘汰机制
|
||||
if info.aid and (tonumber(info.aid) > 0) then
|
||||
result.server = nil
|
||||
end
|
||||
elseif szType == "ss" then
|
||||
local idx_sp = 0
|
||||
local alias = ""
|
||||
if content:find("#") then
|
||||
idx_sp = content:find("#")
|
||||
alias = content:sub(idx_sp + 1, -1)
|
||||
end
|
||||
local info = content:sub(1, idx_sp - 1)
|
||||
local hostInfo = split(base64Decode(info), "@")
|
||||
local host = split(hostInfo[2], ":")
|
||||
local userinfo = base64Decode(hostInfo[1])
|
||||
local method = userinfo:sub(1, userinfo:find(":") - 1)
|
||||
local password = userinfo:sub(userinfo:find(":") + 1, #userinfo)
|
||||
result.alias = UrlDecode(alias)
|
||||
result.type = v2_ss
|
||||
result.v2ray_protocol = (v2_ss == "v2ray") and "shadowsocks" or nil
|
||||
result.encrypt_method_ss = method
|
||||
result.password = password
|
||||
result.server = host[1]
|
||||
if host[2]:find("/%?") then
|
||||
local query = split(host[2], "/%?")
|
||||
result.server_port = query[1]
|
||||
local params = {}
|
||||
for _, v in pairs(split(query[2], '&')) do
|
||||
local t = split(v, '=')
|
||||
params[t[1]] = t[2]
|
||||
end
|
||||
if params.plugin then
|
||||
local plugin_info = UrlDecode(params.plugin)
|
||||
local idx_pn = plugin_info:find(";")
|
||||
if idx_pn then
|
||||
result.plugin = plugin_info:sub(1, idx_pn - 1)
|
||||
result.plugin_opts = plugin_info:sub(idx_pn + 1, #plugin_info)
|
||||
else
|
||||
result.plugin = plugin_info
|
||||
end
|
||||
-- 部分机场下发的插件名为 simple-obfs,这里应该改为 obfs-local
|
||||
if result.plugin == "simple-obfs" then
|
||||
result.plugin = "obfs-local"
|
||||
end
|
||||
end
|
||||
else
|
||||
result.server_port = host[2]:gsub("/","")
|
||||
end
|
||||
if not checkTabValue(encrypt_methods_ss)[method] then
|
||||
-- 1202 年了还不支持 SS AEAD 的屑机场
|
||||
result.server = nil
|
||||
end
|
||||
elseif szType == "sip008" then
|
||||
result.type = v2_ss
|
||||
result.v2ray_protocol = (v2_ss == "v2ray") and "shadowsocks" or nil
|
||||
result.server = content.server
|
||||
result.server_port = content.server_port
|
||||
result.password = content.password
|
||||
result.encrypt_method_ss = content.method
|
||||
result.plugin = content.plugin
|
||||
result.plugin_opts = content.plugin_opts
|
||||
result.alias = content.remarks
|
||||
if not checkTabValue(encrypt_methods_ss)[content.method] then
|
||||
result.server = nil
|
||||
end
|
||||
elseif szType == "ssd" then
|
||||
result.type = v2_ss
|
||||
result.v2ray_protocol = (v2_ss == "v2ray") and "shadowsocks" or nil
|
||||
result.server = content.server
|
||||
result.server_port = content.port
|
||||
result.password = content.password
|
||||
result.encrypt_method_ss = content.method
|
||||
result.plugin_opts = content.plugin_options
|
||||
result.alias = "[" .. content.airport .. "] " .. content.remarks
|
||||
if content.plugin == "simple-obfs" then
|
||||
result.plugin = "obfs-local"
|
||||
else
|
||||
result.plugin = content.plugin
|
||||
end
|
||||
if not checkTabValue(encrypt_methods_ss)[content.encryption] then
|
||||
result.server = nil
|
||||
end
|
||||
elseif szType == "trojan" then
|
||||
local idx_sp = 0
|
||||
local alias = ""
|
||||
if content:find("#") then
|
||||
idx_sp = content:find("#")
|
||||
alias = content:sub(idx_sp + 1, -1)
|
||||
end
|
||||
local info = content:sub(1, idx_sp - 1)
|
||||
local hostInfo = split(info, "@")
|
||||
local host = split(hostInfo[2], ":")
|
||||
local userinfo = hostInfo[1]
|
||||
local password = userinfo
|
||||
result.alias = UrlDecode(alias)
|
||||
result.type = v2_tj
|
||||
result.v2ray_protocol = "trojan"
|
||||
result.server = host[1]
|
||||
-- 按照官方的建议 默认验证ssl证书
|
||||
result.insecure = "0"
|
||||
result.tls = "1"
|
||||
if host[2]:find("?") then
|
||||
local query = split(host[2], "?")
|
||||
result.server_port = query[1]
|
||||
local params = {}
|
||||
for _, v in pairs(split(query[2], '&')) do
|
||||
local t = split(v, '=')
|
||||
params[t[1]] = t[2]
|
||||
end
|
||||
if params.sni then
|
||||
-- 未指定peer(sni)默认使用remote addr
|
||||
result.tls_host = params.sni
|
||||
end
|
||||
else
|
||||
result.server_port = host[2]
|
||||
end
|
||||
result.password = password
|
||||
elseif szType == "vless" then
|
||||
local url = URL.parse("http://" .. content)
|
||||
local params = url.query
|
||||
|
||||
result.alias = url.fragment and UrlDecode(url.fragment) or nil
|
||||
result.type = "v2ray"
|
||||
result.v2ray_protocol = "vless"
|
||||
result.server = url.host
|
||||
result.server_port = url.port
|
||||
result.vmess_id = url.user
|
||||
result.vless_encryption = params.encryption or "none"
|
||||
result.transport = params.type or "tcp"
|
||||
result.tls = (params.security == "tls" or params.security == "xtls") and "1" or "0"
|
||||
result.tls_host = params.sni
|
||||
result.tls_flow = (params.security == "tls" or params.security == "reality") and params.flow or nil
|
||||
result.fingerprint = params.fp
|
||||
result.reality = (params.security == "reality") and "1" or "0"
|
||||
result.reality_publickey = params.pbk and UrlDecode(params.pbk) or nil
|
||||
result.reality_shortid = params.sid
|
||||
result.reality_spiderx = params.spx and UrlDecode(params.spx) or nil
|
||||
if result.transport == "ws" then
|
||||
result.ws_host = (result.tls ~= "1") and (params.host and UrlDecode(params.host)) or nil
|
||||
result.ws_path = params.path and UrlDecode(params.path) or "/"
|
||||
-- make it compatible with bullshit, "h2" transport is non-existent at all
|
||||
elseif result.transport == "http" or result.transport == "h2" then
|
||||
result.transport = "h2"
|
||||
result.h2_host = params.host and UrlDecode(params.host) or nil
|
||||
result.h2_path = params.path and UrlDecode(params.path) or nil
|
||||
elseif result.transport == "kcp" then
|
||||
result.kcp_guise = params.headerType or "none"
|
||||
result.seed = params.seed
|
||||
result.mtu = 1350
|
||||
result.tti = 50
|
||||
result.uplink_capacity = 5
|
||||
result.downlink_capacity = 20
|
||||
result.read_buffer_size = 2
|
||||
result.write_buffer_size = 2
|
||||
elseif result.transport == "quic" then
|
||||
result.quic_guise = params.headerType or "none"
|
||||
result.quic_security = params.quicSecurity or "none"
|
||||
result.quic_key = params.key
|
||||
elseif result.transport == "grpc" then
|
||||
result.serviceName = params.serviceName
|
||||
result.grpc_mode = params.mode or "gun"
|
||||
elseif result.transport == "tcp" then
|
||||
result.tcp_guise = params.headerType or "none"
|
||||
if result.tcp_guise == "http" then
|
||||
result.tcp_host = params.host and UrlDecode(params.host) or nil
|
||||
result.tcp_path = params.path and UrlDecode(params.path) or nil
|
||||
end
|
||||
end
|
||||
end
|
||||
if not result.alias then
|
||||
if result.server and result.server_port then
|
||||
result.alias = result.server .. ':' .. result.server_port
|
||||
else
|
||||
result.alias = "NULL"
|
||||
end
|
||||
end
|
||||
-- alias 不参与 hashkey 计算
|
||||
local alias = result.alias
|
||||
result.alias = nil
|
||||
local switch_enable = result.switch_enable
|
||||
result.switch_enable = nil
|
||||
result.hashkey = md5(jsonStringify(result))
|
||||
result.alias = alias
|
||||
result.switch_enable = switch_enable
|
||||
return result
|
||||
end
|
||||
-- wget
|
||||
local function wget(url)
|
||||
local stdout = luci.sys.exec('wget -q --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36" --no-check-certificate -O- "' .. url .. '"')
|
||||
return trim(stdout)
|
||||
end
|
||||
|
||||
local function check_filer(result)
|
||||
do
|
||||
-- 过滤的关键词列表
|
||||
local filter_word = split(filter_words, "/")
|
||||
-- 保留的关键词列表
|
||||
local check_save = false
|
||||
if save_words ~= nil and save_words ~= "" and save_words ~= "NULL" then
|
||||
check_save = true
|
||||
end
|
||||
local save_word = split(save_words, "/")
|
||||
|
||||
-- 检查结果
|
||||
local filter_result = false
|
||||
local save_result = true
|
||||
|
||||
-- 检查是否存在过滤关键词
|
||||
for i, v in pairs(filter_word) do
|
||||
if tostring(result.alias):find(v, nil, true) then
|
||||
filter_result = true
|
||||
end
|
||||
end
|
||||
|
||||
-- 检查是否打开了保留关键词检查,并且进行过滤
|
||||
if check_save == true then
|
||||
for i, v in pairs(save_word) do
|
||||
if tostring(result.alias):find(v, nil, true) then
|
||||
save_result = false
|
||||
end
|
||||
end
|
||||
else
|
||||
save_result = false
|
||||
end
|
||||
|
||||
-- 不等时返回
|
||||
if filter_result == true or save_result == true then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local execute = function()
|
||||
-- exec
|
||||
do
|
||||
if proxy == '0' then -- 不使用代理更新的话先暂停
|
||||
log('服务正在暂停')
|
||||
luci.sys.init.stop(name)
|
||||
end
|
||||
for k, url in ipairs(subscribe_url) do
|
||||
local raw = wget(url)
|
||||
if #raw > 0 then
|
||||
local nodes, szType
|
||||
local groupHash = md5(url)
|
||||
cache[groupHash] = {}
|
||||
tinsert(nodeResult, {})
|
||||
local index = #nodeResult
|
||||
-- SSD 似乎是这种格式 ssd:// 开头的
|
||||
if raw:find('ssd://') then
|
||||
szType = 'ssd'
|
||||
local nEnd = select(2, raw:find('ssd://'))
|
||||
nodes = base64Decode(raw:sub(nEnd + 1, #raw))
|
||||
nodes = jsonParse(nodes)
|
||||
local extra = {airport = nodes.airport, port = nodes.port, encryption = nodes.encryption, password = nodes.password}
|
||||
local servers = {}
|
||||
-- SS里面包着 干脆直接这样
|
||||
for _, server in ipairs(nodes.servers) do
|
||||
tinsert(servers, setmetatable(server, {__index = extra}))
|
||||
end
|
||||
nodes = servers
|
||||
-- SS SIP008 直接使用 Json 格式
|
||||
elseif jsonParse(raw) then
|
||||
nodes = jsonParse(raw).servers or jsonParse(raw)
|
||||
if nodes[1].server and nodes[1].method then
|
||||
szType = 'sip008'
|
||||
end
|
||||
else
|
||||
-- ssd 外的格式
|
||||
nodes = split(base64Decode(raw):gsub(" ", "_"), "\n")
|
||||
end
|
||||
for _, v in ipairs(nodes) do
|
||||
if v then
|
||||
local result
|
||||
if szType then
|
||||
result = processData(szType, v)
|
||||
elseif not szType then
|
||||
local node = trim(v)
|
||||
local dat = split(node, "://")
|
||||
if dat and dat[1] and dat[2] then
|
||||
local dat3 = ""
|
||||
if dat[3] then
|
||||
dat3 = "://" .. dat[3]
|
||||
end
|
||||
if dat[1] == 'ss' or dat[1] == 'trojan' then
|
||||
result = processData(dat[1], dat[2] .. dat3)
|
||||
else
|
||||
result = processData(dat[1], base64Decode(dat[2]))
|
||||
end
|
||||
end
|
||||
else
|
||||
log('跳过未知类型: ' .. szType)
|
||||
end
|
||||
-- log(result)
|
||||
if result then
|
||||
-- 中文做地址的 也没有人拿中文域名搞,就算中文域也有Puny Code SB 机场
|
||||
if not result.server or not result.server_port or result.alias == "NULL" or check_filer(result) or result.server:match("[^0-9a-zA-Z%-_%.%s]") or cache[groupHash][result.hashkey] then
|
||||
log('丢弃无效节点: ' .. result.type .. ' 节点, ' .. result.alias)
|
||||
else
|
||||
-- log('成功解析: ' .. result.type ..' 节点, ' .. result.alias)
|
||||
result.grouphashkey = groupHash
|
||||
tinsert(nodeResult[index], result)
|
||||
cache[groupHash][result.hashkey] = nodeResult[index][#nodeResult[index]]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
log('成功解析节点数量: ' .. #nodes)
|
||||
else
|
||||
log(url .. ': 获取内容为空')
|
||||
end
|
||||
end
|
||||
end
|
||||
-- diff
|
||||
do
|
||||
if next(nodeResult) == nil then
|
||||
log("更新失败,没有可用的节点信息")
|
||||
if proxy == '0' then
|
||||
luci.sys.init.start(name)
|
||||
log('订阅失败, 恢复服务')
|
||||
end
|
||||
return
|
||||
end
|
||||
local add, del = 0, 0
|
||||
ucic:foreach(name, uciType, function(old)
|
||||
if old.grouphashkey or old.hashkey then -- 没有 hash 的不参与删除
|
||||
if not nodeResult[old.grouphashkey] or not nodeResult[old.grouphashkey][old.hashkey] then
|
||||
ucic:delete(name, old['.name'])
|
||||
del = del + 1
|
||||
else
|
||||
local dat = nodeResult[old.grouphashkey][old.hashkey]
|
||||
ucic:tset(name, old['.name'], dat)
|
||||
-- 标记一下
|
||||
setmetatable(nodeResult[old.grouphashkey][old.hashkey], {__index = {_ignore = true}})
|
||||
end
|
||||
else
|
||||
if not old.alias then
|
||||
if old.server or old.server_port then
|
||||
old.alias = old.server .. ':' .. old.server_port
|
||||
log('忽略手动添加的节点: ' .. old.alias)
|
||||
else
|
||||
ucic:delete(name, old['.name'])
|
||||
end
|
||||
else
|
||||
log('忽略手动添加的节点: ' .. old.alias)
|
||||
end
|
||||
end
|
||||
end)
|
||||
for k, v in ipairs(nodeResult) do
|
||||
for kk, vv in ipairs(v) do
|
||||
if not vv._ignore then
|
||||
local section = ucic:add(name, uciType)
|
||||
ucic:tset(name, section, vv)
|
||||
ucic:set(name, section, "switch_enable", switch)
|
||||
add = add + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
ucic:commit(name)
|
||||
-- 如果原有服务器节点已经不见了就尝试换为第一个节点
|
||||
local globalServer = ucic:get_first(name, 'global', 'global_server', '')
|
||||
if globalServer ~= "nil" then
|
||||
local firstServer = ucic:get_first(name, uciType)
|
||||
if firstServer then
|
||||
if not ucic:get(name, globalServer) then
|
||||
luci.sys.call("/etc/init.d/" .. name .. " stop > /dev/null 2>&1 &")
|
||||
ucic:commit(name)
|
||||
ucic:set(name, ucic:get_first(name, 'global'), 'global_server', ucic:get_first(name, uciType))
|
||||
ucic:commit(name)
|
||||
log('当前主服务器节点已被删除,正在自动更换为第一个节点。')
|
||||
luci.sys.call("/etc/init.d/" .. name .. " start > /dev/null 2>&1 &")
|
||||
else
|
||||
log('维持当前主服务器节点。')
|
||||
luci.sys.call("/etc/init.d/" .. name .. " restart > /dev/null 2>&1 &")
|
||||
end
|
||||
else
|
||||
log('没有服务器节点了,停止服务')
|
||||
luci.sys.call("/etc/init.d/" .. name .. " stop > /dev/null 2>&1 &")
|
||||
end
|
||||
end
|
||||
log('新增节点数量: ' .. add, '删除节点数量: ' .. del)
|
||||
log('订阅更新成功')
|
||||
end
|
||||
end
|
||||
|
||||
if subscribe_url and #subscribe_url > 0 then
|
||||
xpcall(execute, function(e)
|
||||
log(e)
|
||||
log(debug.traceback())
|
||||
log('发生错误, 正在恢复服务')
|
||||
local firstServer = ucic:get_first(name, uciType)
|
||||
if firstServer then
|
||||
luci.sys.call("/etc/init.d/" .. name .. " restart > /dev/null 2>&1 &") -- 不加&的话日志会出现的更早
|
||||
log('重启服务成功')
|
||||
else
|
||||
luci.sys.call("/etc/init.d/" .. name .. " stop > /dev/null 2>&1 &") -- 不加&的话日志会出现的更早
|
||||
log('停止服务成功')
|
||||
end
|
||||
end)
|
||||
end
|
@ -1,69 +0,0 @@
|
||||
#!/bin/sh
|
||||
[ "$1" = --First ] && A=Y || A=N
|
||||
# 防止重复启动
|
||||
[ -f /var/lock/bypass.lock -a $A = N ] && exit 1
|
||||
LOCK=/var/lock/bypass-update.lock
|
||||
[ -f $LOCK ] && exit 1
|
||||
touch $LOCK
|
||||
DIR=/usr/share/bypass
|
||||
T_FILE=/etc/bypass
|
||||
|
||||
log(){
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') $*" >> /var/log/bypass.log
|
||||
}
|
||||
|
||||
C=$(uci -q get bypass.@global[0].run_mode)
|
||||
|
||||
mkdir -p $T_FILE 2>/dev/null
|
||||
if [ "$C" = router ];then
|
||||
if [ ! -f $T_FILE/china.txt ];then
|
||||
while ! (curl -kLfsm 5 -o /tmp/china.txt https://fastly.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt);do
|
||||
sleep 1
|
||||
done
|
||||
else
|
||||
curl -kLfsm 5 -o /tmp/china.txt https://fastly.jsdelivr.net/gh/kiddin9/china_ip_list@main/china_ip_list.txt
|
||||
fi
|
||||
[[ -f /tmp/china.txt && $? == 0 ]] && {
|
||||
if ! cmp -s /tmp/china.txt $T_FILE/china.txt;then
|
||||
log "China IPv4 List 已更新"
|
||||
cp -f /tmp/china.txt $T_FILE/china.txt
|
||||
[ $A = N ] && ipset list china_v4 >/dev/null 2>&1 && $DIR/chinaipset
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! -f $T_FILE/china_v6.txt ];then
|
||||
while ! (curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt);do
|
||||
sleep 1
|
||||
done
|
||||
elif [ $A = N ];then
|
||||
curl -kLfsm 3 -o /tmp/china_v6.txt https://ispip.clang.cn/all_cn_ipv6.txt
|
||||
fi
|
||||
[[ -f /tmp/china_v6.txt && $? == 0 ]] && {
|
||||
if ! cmp -s /tmp/china_v6.txt $T_FILE/china_v6.txt;then
|
||||
log "China IPv6 List 已更新"
|
||||
cp -f /tmp/china_v6.txt $T_FILE/china_v6.txt
|
||||
[ $A = N ] && ipset list china_v6 >/dev/null 2>&1 && $DIR/chinaipset v6
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
if [ "$C" = gfw -o "$(uci -q get bypass.@global[0].gfw_mode)" = 1 ];then
|
||||
if [ ! -f $T_FILE/gfw.list ];then
|
||||
while ! (curl -kLfsm 5 -o /tmp/gfw.b64 https://fastly.jsdelivr.net/gh/gfwlist/gfwlist/gfwlist.txt);do
|
||||
sleep 1
|
||||
done
|
||||
elif [ "$C" = gfw -o $A = N ];then
|
||||
curl -kLfsm 5 -o /tmp/gfw.b64 https://fastly.jsdelivr.net/gh/gfwlist/gfwlist/gfwlist.txt
|
||||
fi
|
||||
if [[ -f /tmp/gfw.b64 && $? == 0 ]];then
|
||||
$DIR/by-gfw
|
||||
if ! cmp -s /tmp/gfwnew.txt $T_FILE/gfw.list;then
|
||||
cp -f /tmp/gfwnew.txt $T_FILE/gfw.list
|
||||
log "GFW List 已更新"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f $LOCK /tmp/china*.txt /tmp/gfwnew.txt
|
||||
|
||||
[ $A = Y ] && /etc/init.d/bypass start updated &
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"luci-app-bypass": {
|
||||
"description": "Grant UCI access for luci-app-bypass",
|
||||
"read": {
|
||||
"uci": [ "bypass" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "bypass" ]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M36.364,423.7h134.302V88.303H38.345C17.167,88.303,0,105.47,0,126.648v258.759 C0,405.919,16.108,422.67,36.364,423.7z"/>
|
||||
<rect x="170.67" y="88.3" style="fill:#FFE15A;" width="170.67" height="335.39"/>
|
||||
<path style="fill:#FF4B55;" d="M475.636,423.7C495.892,422.67,512,405.919,512,385.406V126.648 c0-21.177-17.167-38.345-38.345-38.345H341.334V423.7H475.636L475.636,423.7z"/>
|
||||
<path style="fill:#DCBE82;" d="M316.023,284.667c0-2.562-2.077-4.64-4.64-4.64c-0.556,0-1.082,0.114-1.577,0.294 c-2.296-2.042-6.457-7.11-2.282-14.264c0.564,0.439,1.265,0.711,2.035,0.711c1.841,0,3.332-1.492,3.332-3.332 c0-1.454-0.937-2.678-2.236-3.133c3.431-1.75,8.324-5.465,8.072-12.412c-0.359-9.852-8.429-15.29-13.38-13.116 c0.018-0.138,0.042-0.274,0.042-0.416c0-1.815-1.471-3.286-3.286-3.286c-1.116,0-2.098,0.559-2.691,1.409 c-0.202-0.985-0.178-2.814,2.112-4.791c4.253-3.673,9.086-12.469,0.29-18.655c-4.871-3.425-14.182-5.066-17.301-0.386 c-1.353,2.029-0.268,4.945,1.277,5.6c-2.489,1.388-7.211,3.471-10.942,1.843c-5.316-2.319-2.246-6.926-1.063-8.989 c2.078-3.625,0.774-9.569-6.186-9.569c-4.64,0-6.959,4.64-11.598,4.64c-4.639,0-6.959-4.64-11.598-4.64 c-6.959,0-8.264,5.944-6.186,9.569c1.183,2.062,4.253,6.669-1.063,8.989c-3.731,1.629-8.452-0.455-10.942-1.843 c1.544-0.654,2.63-3.57,1.277-5.6c-3.119-4.679-12.43-3.039-17.301,0.386c-8.796,6.186-3.962,14.982,0.29,18.655 c2.29,1.977,2.314,3.807,2.112,4.791c-0.594-0.85-1.576-1.409-2.691-1.409c-1.815,0-3.286,1.471-3.286,3.286 c0,0.142,0.024,0.279,0.042,0.416c-4.951-2.175-13.022,3.264-13.38,13.116c-0.253,6.946,4.641,10.662,8.072,12.412 c-1.299,0.456-2.236,1.679-2.236,3.133c0,1.841,1.492,3.332,3.332,3.332c0.77,0,1.47-0.271,2.035-0.711 c4.175,7.155,0.015,12.222-2.282,14.264c-0.494-0.18-1.021-0.294-1.577-0.294c-2.562,0-4.64,2.077-4.64,4.64 c0,2.406,1.837,4.361,4.182,4.594c-3.198,3.285-6.067,10.525,0.168,18.749c6.814,8.989,23.052,8.264,30.881,8.554 c4.964,0.184,8.698,2.754,10.771,4.614c-1.325,0.817-2.217,2.269-2.217,3.94c0,2.343,1.743,4.26,4,4.575 c0.82,1.312,2.265,2.191,3.926,2.191c1.856,0,3.445-1.097,4.188-2.673c2.45,2.019,4.125,2.866,4.125,2.866s1.675-0.846,4.125-2.866 c0.742,1.575,2.332,2.673,4.188,2.673c1.661,0,3.106-0.879,3.926-2.191c2.257-0.314,4-2.232,4-4.575c0-1.672-0.892-3.124-2.217-3.94 c2.072-1.859,5.806-4.43,10.771-4.614c7.829-0.29,24.067,0.435,30.881-8.554c6.234-8.224,3.366-15.465,0.168-18.749 C314.186,289.027,316.023,287.073,316.023,284.667z"/>
|
||||
<path style="fill:#D2AA73;" d="M214.246,225.079v67.273c0,7.687,6.231,13.919,13.919,13.919h18.558c6.959,0,9.279,4.64,9.279,4.64 s2.319-4.64,9.279-4.64h18.558c7.687,0,13.919-6.231,13.919-13.919v-67.273c0-1.281-1.038-2.319-2.319-2.319h-78.871 C215.284,222.758,214.246,223.798,214.246,225.079z"/>
|
||||
<g>
|
||||
<rect x="218.88" y="227.4" style="fill:#FF4B55;" width="34.796" height="34.796"/>
|
||||
<path style="fill:#FF4B55;" d="M253.681,301.629L253.681,301.629c-19.218,0-34.796-15.578-34.796-34.796l0,0h34.796V301.629z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M258.321,301.629L258.321,301.629v-34.796h34.796l0,0 C293.116,286.051,277.537,301.629,258.321,301.629z"/>
|
||||
<rect x="258.32" y="227.4" style="fill:#FFE15A;" width="4.971" height="34.796"/>
|
||||
</g>
|
||||
<rect x="263.29" y="227.4" style="fill:#FF4B55;" width="4.971" height="34.796"/>
|
||||
<rect x="268.26" y="227.4" style="fill:#FFE15A;" width="4.971" height="34.796"/>
|
||||
<rect x="273.24" y="227.4" style="fill:#FF4B55;" width="4.971" height="34.796"/>
|
||||
<g>
|
||||
<rect x="278.2" y="227.4" style="fill:#FFE15A;" width="4.971" height="34.796"/>
|
||||
<rect x="288.14" y="227.4" style="fill:#FFE15A;" width="4.971" height="34.796"/>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="283.18" y="227.4" style="fill:#FF4B55;" width="4.971" height="34.796"/>
|
||||
<rect x="230.48" y="266.84" style="fill:#FF4B55;" width="3.866" height="34.796"/>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="234.35" y="266.84" style="fill:#FFE15A;" width="3.866" height="34.796"/>
|
||||
<rect x="242.09" y="266.84" style="fill:#FFE15A;" width="3.866" height="34.796"/>
|
||||
</g>
|
||||
<rect x="238.21" y="266.84" style="fill:#FF4B55;" width="3.866" height="34.796"/>
|
||||
<rect x="249.81" y="266.84" style="fill:#FFE15A;" width="3.866" height="34.796"/>
|
||||
<rect x="245.95" y="266.84" style="fill:#FF4B55;" width="3.866" height="34.796"/>
|
||||
<path style="fill:#FFE15A;" d="M222.751,299.859v-33.026h-3.866v25.517C218.884,295.449,220.417,298.174,222.751,299.859z"/>
|
||||
<path style="fill:#FF4B55;" d="M226.617,301.474v-34.641h-3.866v33.026C223.878,300.674,225.188,301.233,226.617,301.474z"/>
|
||||
<path style="fill:#FFE15A;" d="M226.617,266.833v34.641c0.505,0.085,1.016,0.156,1.547,0.156h2.319v-34.796L226.617,266.833 L226.617,266.833z"/>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M224.071,260.218c-0.173,0-0.348-0.049-0.503-0.151c-2.281-1.509-2.414-3.082-2.29-3.884 c0.167-1.084,0.973-1.983,2.053-2.292c1.028-0.289,2.054,0.014,2.746,0.819c1.44,1.674,2.927,2.333,4.179,1.87 c0.991-0.367,1.582-1.344,1.582-2.074c0-0.505,0.408-0.914,0.914-0.914s0.914,0.408,0.914,0.914c0,1.598-1.166,3.191-2.774,3.787 c-1.175,0.434-3.538,0.702-6.2-2.391c-0.286-0.33-0.622-0.32-0.86-0.254c-0.324,0.093-0.683,0.381-0.749,0.812 c-0.097,0.63,0.447,1.388,1.492,2.081c0.422,0.278,0.536,0.846,0.258,1.267C224.658,260.073,224.367,260.218,224.071,260.218z"/>
|
||||
<path style="fill:#F5F5F5;" d="M248.604,260.218c-0.296,0-0.587-0.145-0.762-0.408c-0.278-0.422-0.163-0.989,0.258-1.267 c1.045-0.693,1.589-1.451,1.492-2.081c-0.067-0.431-0.425-0.719-0.749-0.812c-0.238-0.066-0.575-0.077-0.86,0.254 c-2.662,3.095-5.026,2.827-6.2,2.391c-1.608-0.596-2.774-2.19-2.774-3.787c0-0.505,0.408-0.914,0.914-0.914 c0.505,0,0.914,0.408,0.914,0.914c0,0.73,0.591,1.706,1.582,2.074c1.252,0.465,2.74-0.196,4.179-1.87 c0.693-0.809,1.719-1.11,2.746-0.819c1.08,0.309,1.887,1.208,2.053,2.292c0.124,0.801-0.009,2.374-2.29,3.884 C248.952,260.168,248.777,260.218,248.604,260.218z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M223.567,261.304c-0.193,0-0.387-0.061-0.553-0.185c-0.402-0.307-0.479-0.879-0.174-1.281 l19.864-26.119c0.19-0.343,0.262-0.818,0.344-1.365c0.153-1.026,0.345-2.303,1.911-3.245c1.021-0.612,2.232-0.595,3.245,0.052 c1.118,0.714,1.777,2.044,1.641,3.309c-0.082,0.769-0.531,2.172-2.612,2.943c-0.476,0.177-1-0.067-1.174-0.538 c-0.175-0.473,0.066-1,0.538-1.174c0.607-0.225,1.348-0.655,1.43-1.425c0.063-0.584-0.269-1.229-0.808-1.575 c-0.301-0.193-0.774-0.358-1.319-0.025c-0.829,0.498-0.911,1.044-1.047,1.949c-0.096,0.641-0.205,1.367-0.633,2.106l-19.927,26.214 C224.117,261.178,223.843,261.304,223.567,261.304z"/>
|
||||
<polygon style="fill:#FFE15A;" points="236.408,232.575 227.271,243.54 230.925,254.506 241.891,254.506 245.547,243.54 "/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M236.408,231.148l-10.166,12.199l4.024,12.074h12.282l4.024-12.074L236.408,231.148z M228.298,243.736l7.197-8.636v18.493h-3.911L228.298,243.736z M241.233,253.593h-3.911V235.1l7.197,8.636L241.233,253.593z"/>
|
||||
<path style="fill:#FF4B55;" d="M284.562,277.819l0.138-2.027c0,0,1.798-1.29,0.921-2.488c-0.875-1.198-1.889-1.429-4.009-1.152 c-2.12,0.277-5.438,0.231-6.866,0.322c-1.429,0.093-2.166,0.875-4.424,0.231l0.599-1.383c0,0-1.059,0.093-1.705,0.415 c-0.352,0.177-1.198-0.968-2.027-0.783c-0.826,0.183-1.659,1.889-2.95,2.765l0.691,1.383c0,0,0.783-0.369,1.383,0.046 c0.599,0.415,0.783,0.691,1.798,0.691l0.646,0.277c0,0-0.231,1.474,0.737,2.166c0,0-1.106,1.429-0.968,1.659 c0.138,0.231,1.059,1.982,1.429,2.995l0.83-1.567c0,0-1.245-1.106-1.014-1.245c0.231-0.138,1.059-0.322,0.921-0.691 c-0.138-0.369,0.646,0.046,1.521,0.184c0,0,0.046,1.383,0.231,1.567s0.461,0.921,0.415,1.705c-0.046,0.783-0.737,1.014-0.737,1.014 l1.245,0.369c0,0,0.322-0.461,0.553-0.415c0,0-0.093-3.825,0.415-4.424c0,0,2.995,0.599,4.377-0.138c0,0,0.177,0.223,0.522,0.435 c-0.138,0.321-0.255,0.641-0.203,0.735c0.116,0.209,0.486,0.185,0.578-0.046c0.035-0.087,0.089-0.266,0.143-0.451 c0.167,0.055,0.35,0.098,0.559,0.119c-0.02,0.291-0.022,0.559,0.045,0.621c0.174,0.161,0.519,0.024,0.535-0.225 c0.006-0.081,0.002-0.234-0.002-0.398c0.238-0.02,0.492-0.062,0.772-0.145l-1.567,2.581l-0.783,0.322l1.014,0.507l0.921-0.369 c0,0,0.875-2.212,2.304-2.857c0,0,0.968,2.304-0.231,3.549l1.059,0.599l0.507-1.059c0,0-0.184-2.073,0.507-3.41L284.562,277.819z"/>
|
||||
<g>
|
||||
<path style="fill:#4173CD;" d="M267.209,271.235c0,0-0.462-0.439-0.578-1.017s-0.255-0.833-0.764-0.994c0,0,0.323,0.37,0.278,0.948 c-0.046,0.578,0,1.365,0.323,1.619L267.209,271.235z"/>
|
||||
<path style="fill:#4173CD;" d="M271.233,272.865c0,0-0.629,2.138-2.477,3.25l-0.646-0.277c0,0,1.973-1.686,2.212-3.134 L271.233,272.865z"/>
|
||||
<path style="fill:#4173CD;" d="M268.087,271.743c-0.066-0.068,0.81-0.323,0.601-1.017c-0.209-0.694-0.209-1.203,0.209-1.526 c0,0,0.046,0.578,0.37,0.948c0.323,0.37,0.509,1.295-0.023,1.827C269.245,271.974,268.712,272.391,268.087,271.743z"/>
|
||||
<path style="fill:#4173CD;" d="M268.188,278.049L268.188,278.049c-0.11-0.054-0.157-0.189-0.102-0.299l0.279-0.568 c0.163-0.333,0.055-0.747-0.266-0.932c-0.353-0.203-0.797-0.063-0.973,0.296l-0.29,0.59c-0.054,0.11-0.189,0.157-0.299,0.102 l-0.174,0.354c0,0,0.256,0.126,0.566,0.278l-0.007,0.013c-0.071,0.143-0.011,0.317,0.132,0.387 c0.143,0.071,0.317,0.011,0.387-0.132l0.007-0.013c0.31,0.152,0.566,0.278,0.566,0.278L268.188,278.049z"/>
|
||||
<polygon style="fill:#4173CD;" points="270.424,281.944 271.117,282.083 270.539,283.864 269.954,282.935 "/>
|
||||
<polygon style="fill:#4173CD;" points="272.12,283.902 271.697,284.65 273.362,284.65 273.365,284.271 "/>
|
||||
<polygon style="fill:#4173CD;" points="280.322,283.35 280.322,283.794 278.433,283.794 279.347,282.881 "/>
|
||||
<polygon style="fill:#4173CD;" points="283.318,283.672 282.385,284.605 284.349,284.605 284.377,284.271 "/>
|
||||
</g>
|
||||
<path style="fill:#FF4B55;" d="M284.562,292.258l0.138-2.027c0,0,1.798-1.29,0.921-2.488c-0.875-1.198-1.889-1.429-4.009-1.152 s-5.438,0.231-6.866,0.322c-1.429,0.093-2.166,0.875-4.424,0.231l0.599-1.383c0,0-1.059,0.093-1.705,0.415 c-0.352,0.177-1.198-0.968-2.027-0.783c-0.826,0.183-1.659,1.889-2.95,2.765l0.691,1.383c0,0,0.783-0.369,1.383,0.046 c0.599,0.415,0.783,0.691,1.798,0.691l0.646,0.277c0,0-0.231,1.474,0.737,2.166c0,0-1.106,1.429-0.968,1.658 c0.138,0.231,1.059,1.982,1.429,2.995l0.83-1.567c0,0-1.245-1.106-1.014-1.245s1.059-0.322,0.921-0.691s0.646,0.046,1.521,0.184 c0,0,0.046,1.383,0.231,1.567c0.184,0.184,0.461,0.921,0.415,1.705c-0.046,0.783-0.737,1.014-0.737,1.014l1.245,0.369 c0,0,0.322-0.461,0.553-0.415c0,0-0.093-3.825,0.415-4.424c0,0,2.995,0.599,4.377-0.138c0,0,0.177,0.223,0.522,0.435 c-0.138,0.321-0.255,0.641-0.203,0.735c0.116,0.209,0.486,0.185,0.578-0.046c0.035-0.087,0.089-0.266,0.143-0.451 c0.167,0.055,0.35,0.098,0.559,0.119c-0.02,0.291-0.022,0.559,0.045,0.621c0.174,0.161,0.519,0.024,0.535-0.225 c0.006-0.081,0.002-0.234-0.002-0.398c0.238-0.02,0.492-0.062,0.772-0.145l-1.567,2.581l-0.783,0.322l1.014,0.507l0.921-0.369 c0,0,0.875-2.212,2.304-2.857c0,0,0.968,2.304-0.231,3.549l1.059,0.599l0.507-1.059c0,0-0.184-2.073,0.507-3.41L284.562,292.258z"/>
|
||||
<g>
|
||||
<path style="fill:#4173CD;" d="M267.209,285.673c0,0-0.462-0.439-0.578-1.017s-0.255-0.833-0.764-0.994c0,0,0.323,0.37,0.278,0.948 c-0.046,0.578,0,1.365,0.323,1.619L267.209,285.673z"/>
|
||||
<path style="fill:#4173CD;" d="M271.233,287.303c0,0-0.629,2.138-2.477,3.25l-0.646-0.277c0,0,1.973-1.686,2.212-3.134 L271.233,287.303z"/>
|
||||
<path style="fill:#4173CD;" d="M268.087,286.182c-0.066-0.068,0.81-0.323,0.601-1.017c-0.209-0.694-0.209-1.203,0.209-1.527 c0,0,0.046,0.578,0.37,0.948s0.509,1.295-0.023,1.827C269.245,286.413,268.712,286.83,268.087,286.182z"/>
|
||||
<path style="fill:#4173CD;" d="M268.188,292.487L268.188,292.487c-0.11-0.054-0.157-0.189-0.102-0.299l0.279-0.568 c0.163-0.333,0.055-0.747-0.266-0.932c-0.353-0.203-0.797-0.063-0.973,0.296l-0.29,0.59c-0.054,0.11-0.189,0.157-0.299,0.102 l-0.174,0.354c0,0,0.256,0.126,0.566,0.278l-0.007,0.013c-0.071,0.143-0.011,0.317,0.132,0.387 c0.143,0.071,0.317,0.011,0.387-0.132l0.007-0.013c0.31,0.152,0.566,0.278,0.566,0.278L268.188,292.487z"/>
|
||||
<polygon style="fill:#4173CD;" points="270.424,296.382 271.117,296.521 270.539,298.302 269.954,297.373 "/>
|
||||
<polygon style="fill:#4173CD;" points="272.12,298.341 271.697,299.089 273.362,299.089 273.365,298.71 "/>
|
||||
<polygon style="fill:#4173CD;" points="280.322,297.788 280.322,298.233 278.433,298.233 279.347,297.319 "/>
|
||||
<polygon style="fill:#4173CD;" points="283.318,298.11 282.385,299.044 284.349,299.044 284.377,298.71 "/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 12 KiB |
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M473.655,88.276H158.897v111.816H512v-73.471C512,105.443,494.833,88.276,473.655,88.276z"/>
|
||||
<path style="fill:#464655;" d="M158.897,423.724h314.759c21.177,0,38.345-17.167,38.345-38.345v-73.471H158.897V423.724z"/>
|
||||
<rect x="158.9" y="200.09" style="fill:#F5F5F5;" width="353.1" height="111.81"/>
|
||||
<path style="fill:#FF4B55;" d="M38.345,88.276C17.167,88.276,0,105.443,0,126.621V385.38c0,21.177,17.167,38.345,38.345,38.345 h120.552V88.276H38.345z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 985 B |
@ -1,68 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#464655;" d="M38.345,423.721h132.322V88.273H38.345C17.167,88.273,0,105.44,0,126.618v258.759 C0,406.554,17.167,423.721,38.345,423.721z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#FF4B55;" width="170.67" height="335.45"/>
|
||||
<path style="fill:#73AF00;" d="M473.655,423.721c21.177,0,38.345-17.167,38.345-38.345V126.618 c0-21.177-17.167-38.345-38.345-38.345H341.334v335.448H473.655z"/>
|
||||
<g>
|
||||
<rect x="235.52" y="247.707" style="fill:#F5F5F5;" width="7.679" height="2.56"/>
|
||||
<polygon style="fill:#F5F5F5;" points="279.038,273.303 232.962,273.303 235.522,268.185 276.478,268.185 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="279.038,232.348 232.962,232.348 235.522,237.468 276.478,237.468 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="268.799,234.908 243.201,234.908 248.321,229.788 263.68,229.788 "/>
|
||||
<rect x="235.52" y="260.507" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="235.52" y="252.827" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="235.52" y="240.027" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="268.8" y="260.507" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="268.8" y="252.827" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="268.8" y="240.027" style="fill:#F5F5F5;" width="7.679" height="5.12"/>
|
||||
<rect x="268.8" y="247.707" style="fill:#F5F5F5;" width="7.679" height="2.56"/>
|
||||
<rect x="238.08" y="219.547" style="fill:#F5F5F5;" width="5.12" height="10.239"/>
|
||||
<path style="fill:#F5F5F5;" d="M243.201,216.989h-5.12v-2.56c0-1.414,1.146-2.56,2.56-2.56l0,0c1.414,0,2.56,1.146,2.56,2.56 V216.989L243.201,216.989z"/>
|
||||
<rect x="268.8" y="219.547" style="fill:#F5F5F5;" width="5.12" height="10.239"/>
|
||||
<path style="fill:#F5F5F5;" d="M273.919,216.989h-5.12v-2.56c0-1.414,1.146-2.56,2.56-2.56l0,0c1.414,0,2.56,1.146,2.56,2.56 V216.989L273.919,216.989z"/>
|
||||
<path style="fill:#F5F5F5;" d="M256,240.027L256,240.027c-5.655,0-10.239,4.584-10.239,10.239v15.359h20.478v-15.359 C266.239,244.612,261.655,240.027,256,240.027z"/>
|
||||
<path style="fill:#F5F5F5;" d="M239.053,256.153l-13.937-16.259c0.09-0.263,0.167-0.533,0.167-0.826c0-1.414-1.146-2.56-2.56-2.56 s-2.56,1.146-2.56,2.56s1.146,2.56,2.56,2.56c0.154,0,0.288-0.062,0.434-0.087l1.442,1.683l-6.996,16.323l7.679,7.679l6.631-15.47 l5.197,6.063L239.053,256.153z M226.601,261.501l-6.127-6.127l2.764-6.451l6.127,6.127L226.601,261.501z"/>
|
||||
<path style="fill:#F5F5F5;" d="M274.954,257.818l5.197-6.063l6.631,15.47l7.679-7.679l-6.996-16.323l1.442-1.683 c0.147,0.025,0.28,0.087,0.434,0.087c1.414,0,2.56-1.146,2.56-2.56s-1.146-2.56-2.56-2.56s-2.56,1.146-2.56,2.56 c0,0.294,0.076,0.564,0.167,0.826l-13.937,16.259L274.954,257.818z M282.699,255.05l6.127-6.127l2.764,6.451l-6.127,6.127 L282.699,255.05z"/>
|
||||
<path style="fill:#F5F5F5;" d="M258.898,214.876c-0.804-0.237-1.522-0.676-1.976-1.38c-0.303-0.471-0.612-1.006-0.921-1.625 c-0.309,0.619-0.618,1.154-0.921,1.625c-0.455,0.705-1.172,1.144-1.976,1.38c-4.241,1.249-7.342,5.148-7.342,9.793 c0,0.889,0.149,1.737,0.362,2.56h19.754c0.213-0.823,0.362-1.671,0.362-2.56C266.239,220.023,263.138,216.125,258.898,214.876z"/>
|
||||
<path style="fill:#F5F5F5;" d="M197.34,252.526c-0.13-1.591-0.214-3.194-0.214-4.819c0-3.288,0.298-6.522,0.826-9.695 c0.738,0.511,1.511,1.073,2.314,1.704c-0.375,2.625-0.582,5.291-0.582,7.991c0,1.892,0.097,3.763,0.28,5.608l5.411,1.625 c-0.338-2.37-0.572-4.772-0.572-7.233c0-1.224,0.073-2.433,0.17-3.638c2.826,3.134,5.056,6.92,5.056,11.104 c0,0.107,8.213-12.159-6.719-25.704l-0.107,5.759l-8.6-0.09c-0.775-0.008-1.457,0.542-1.592,1.305 c-0.654,3.679-1.006,7.441-1.006,11.264c0,1.087,0.029,2.167,0.082,3.241L197.34,252.526z"/>
|
||||
<path style="fill:#F5F5F5;" d="M220.053,201.096c1.119-0.863,1.325-2.47,0.461-3.59c-0.866-1.12-2.472-1.322-3.591-0.46 c-11.585,8.947-19.535,21.239-22.978,35.008l5.276,0.068C202.541,219.936,209.726,209.072,220.053,201.096z"/>
|
||||
<path style="fill:#F5F5F5;" d="M216.623,207.481c-5.567,5.452-9.781,11.869-12.648,18.839c1.583,1.301,2.88,2.615,3.957,3.922 c2.58-7.107,6.689-13.632,12.274-19.101c1.01-0.99,1.027-2.61,0.038-3.619C219.252,206.508,217.633,206.491,216.623,207.481z"/>
|
||||
<path style="fill:#F5F5F5;" d="M207.727,281.267c-3.796-5.447-6.697-11.555-8.498-18.116l2.976,1.094 c1.859,5.987,4.68,11.555,8.292,16.516l5.65-1.034c-3.19-3.965-5.812-8.404-7.727-13.198l3.34,1.227 c1.906,4.185,4.346,8.033,7.255,11.447l5.879-1.077c-2.312-2.36-4.334-5.017-6.076-7.883l-3.406-6.812 c-1.052-2.104-2.925-3.68-5.178-4.355l-8.058-2.422l-1.863-0.559l-2.682-0.807l-5.335-1.603l-2.848-0.856l1.762,5.288 c0.387,1.161,1.17,2.13,2.188,2.766c1.629,7.735,4.65,14.962,8.8,21.4L207.727,281.267z"/>
|
||||
<path style="fill:#F5F5F5;" d="M308.794,235.228l-0.107-5.759c-14.932,13.545-6.719,25.811-6.719,25.704 c0-4.184,2.23-7.97,5.056-11.104c0.097,1.205,0.17,2.415,0.17,3.638c0,2.462-0.234,4.864-0.572,7.233l5.411-1.625 c0.183-1.845,0.28-3.715,0.28-5.608c0-2.701-0.206-5.367-0.582-7.991c0.803-0.63,1.577-1.193,2.314-1.704 c0.529,3.172,0.826,6.408,0.826,9.695c0,1.624-0.084,3.228-0.214,4.819l5.251-1.578c0.054-1.074,0.082-2.154,0.082-3.241 c0-3.823-0.353-7.585-1.006-11.264c-0.136-0.764-0.818-1.313-1.592-1.305L308.794,235.228z"/>
|
||||
<path style="fill:#F5F5F5;" d="M312.78,232.123l5.276-0.068c-3.444-13.769-11.393-26.061-22.978-35.008 c-1.119-0.863-2.724-0.66-3.591,0.46c-0.864,1.12-0.658,2.728,0.461,3.59C302.274,209.072,309.459,219.936,312.78,232.123z"/>
|
||||
<path style="fill:#F5F5F5;" d="M308.025,226.32c-2.868-6.97-7.081-13.387-12.648-18.839c-1.01-0.99-2.628-0.972-3.619,0.04 c-0.99,1.01-0.972,2.63,0.038,3.619c5.585,5.469,9.694,11.993,12.274,19.101C305.145,228.935,306.442,227.62,308.025,226.32z"/>
|
||||
<path style="fill:#F5F5F5;" d="M319.705,253.682l-5.335,1.603l-2.682,0.807l-1.863,0.559l-8.059,2.422 c-2.253,0.676-4.127,2.252-5.178,4.355l-3.406,6.812c-1.741,2.866-3.764,5.523-6.076,7.883l5.879,1.077 c2.909-3.414,5.35-7.261,7.255-11.447l3.34-1.227c-1.916,4.794-4.538,9.234-7.727,13.198l5.65,1.034 c3.614-4.962,6.433-10.529,8.292-16.516l2.976-1.094c-1.801,6.561-4.702,12.67-8.498,18.116l5.529,1.012 c4.15-6.439,7.17-13.665,8.8-21.4c1.018-0.637,1.801-1.606,2.188-2.766l1.762-5.288L319.705,253.682z"/>
|
||||
<path style="fill:#F5F5F5;" d="M282.678,281.983l-0.132,0.117c-7.447,5.748-16.696,9.122-26.545,9.122 c-9.848,0-19.097-3.374-26.545-9.122l-0.132-0.117c-0.967-1.063-2.42-1.539-3.828-1.255l-25.81,5.375l5.727,5.02 c1.532,1.343,3.5,1.969,5.457,1.854c4.609,4.59,9.902,8.491,15.723,11.522l-1.677,3.095c9.247,5.028,19.838,7.887,31.084,7.887 c11.246,0,21.836-2.859,31.084-7.887l-1.677-3.095c5.821-3.031,11.114-6.933,15.723-11.522c1.958,0.115,3.926-0.512,5.458-1.854 l5.727-5.02l-25.81-5.375C285.098,280.444,283.644,280.919,282.678,281.983z M229.041,299.98c-4.64-2.414-8.888-5.463-12.711-8.97 l2.485-1.185c3.471,3.072,7.289,5.762,11.438,7.915L229.041,299.98z M295.67,291.01c-3.822,3.507-8.071,6.555-12.711,8.97 l-1.213-2.239c4.149-2.153,7.966-4.843,11.438-7.915L295.67,291.01z M256,298.901c-12.192,0-23.363-4.326-32.159-11.473 l2.554-1.218c8.305,6.397,18.625,10.131,29.603,10.131c10.978,0,21.299-3.734,29.603-10.131l2.554,1.218 C279.364,294.576,268.192,298.901,256,298.901z"/>
|
||||
<path style="fill:#F5F5F5;" d="M227.912,278.355c1.099,0.93,2.239,1.81,3.427,2.628h49.322c1.188-0.819,2.328-1.698,3.427-2.628 l-2.49-2.49h-51.194L227.912,278.355z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 7.6 KiB |
@ -1,42 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#464655;" d="M473.651,88.256H38.292c-20.485,0-37.215,16.06-38.292,36.277v262.933 c1.077,20.215,17.807,36.277,38.292,36.277h435.359c21.18,0,38.349-17.169,38.349-38.349V126.605 C512,105.425,494.831,88.256,473.651,88.256z"/>
|
||||
<polygon style="fill:#FFE15A;" points="256.029,105.913 267.224,164.401 299.95,114.649 287.911,172.97 337.184,139.529 303.744,188.803 362.064,176.764 312.312,209.49 370.8,220.685 312.312,231.88 362.064,264.606 303.744,252.567 337.184,301.84 287.911,268.399 299.95,326.719 267.224,276.968 256.029,335.456 244.834,276.968 212.108,326.719 224.148,268.399 174.873,301.84 208.315,252.567 149.994,264.606 199.745,231.88 141.257,220.685 199.745,209.49 149.994,176.764 208.315,188.803 174.873,139.529 224.148,172.97 212.108,114.649 244.834,164.401 "/>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M9.737,101.014C4.08,107.322,0.48,115.512,0,124.533v262.933 c1.077,20.215,17.807,36.277,38.292,36.277h217.737L9.737,101.014z"/>
|
||||
<path style="fill:#FF4B55;" d="M256.029,423.742h217.622c21.18,0,38.349-17.169,38.349-38.349V126.605 c0-9.802-3.683-18.741-9.732-25.52L256.029,423.742z"/>
|
||||
</g>
|
||||
<polygon style="fill:#4173CD;" points="154.965,291.313 357.093,291.313 410.993,220.685 101.064,220.685 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="154.965,291.313 256.029,423.742 357.093,291.313 "/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.8 KiB |
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512.1 512.1" style="enable-background:new 0 0 512.1 512.1;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M472.1,88.3H39.9c-22,0-39.9,17.8-39.9,39.9v255.7c0,22,17.8,39.9,39.9,39.9h432.3 c22,0,39.9-17.8,39.9-39.9V128.1C512,106.1,494.2,88.3,472.1,88.3z"/>
|
||||
<path style="fill:#F5F5F5;" d="M8.8,256h15.3l81.8-53.6V256H150v-53.6l81.8,53.6h15.3c4.9,0,8.8-4,8.8-8.8v-7l-70.2-46H256v-44.1 h-70.2l70.2-46v-7c0-4.9-4-8.8-8.8-8.8h-15.3l-81.8,53.6V88.3H106v53.6L27.3,90.3c-9.2,3-16.8,9.3-21.7,17.5l64.6,42.3H0v44.1h70.2 L0,240.2v7C0,252,4,256,8.8,256z"/>
|
||||
<g>
|
||||
<polygon style="fill:#FF4B55;" points="256,158.9 141.2,158.9 141.2,88.3 114.8,88.3 114.8,158.9 0,158.9 0,185.4 114.8,185.4 114.8,256 141.2,256 141.2,185.4 256,185.4 "/>
|
||||
<path style="fill:#FF4B55;" d="M8.7,103.2L80.8,150H97L15,96.8C12.8,98.7,10.6,100.9,8.7,103.2z"/>
|
||||
<path style="fill:#FF4B55;" d="M166.3,150.1l88.4-57.4c-1.5-2.6-4.2-4.4-7.5-4.4h-1.9l-95.2,61.8H166.3z"/>
|
||||
<path style="fill:#FF4B55;" d="M89.5,194.2L0,251.5c1.5,2.7,5.5,4.5,8.8,4.5h1.7l95.2-61.8H89.5z"/>
|
||||
<path style="fill:#FF4B55;" d="M255.9,247.9l-82.7-53.7H157l93.9,60.9C253.7,253.8,255.6,251.1,255.9,247.9z"/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M328.6,192.7c-1.2,15.8-6.1,116,57.5,138.7c63.6-22.7,58.7-122.9,57.5-138.7 c-7.7,3-35.6,12.2-57.5-3.4C364.2,204.8,336.3,195.7,328.6,192.7z"/>
|
||||
<g>
|
||||
<path style="fill:#FFA028;" d="M417.4,212.9c-3.5-2.7-9.9,2.3-17.2,1.8c-6.7-0.5-15-7.3-25.7-4.3c-3-2.7-1.5-9.1-1.5-9.1 c-7.5,4.8-8,11.4-7.5,15c-5.3,7-5,17.8-4,21c1.3,4.3,3.7,4.8,4.1,9.6c0.4,4.8,2.2,3.1,2.2,3.1c3.7-2.1,4.3-6,5.9-12.5 c6.1,0.8,10-4.7,10-4.7c-4,1.2-6.5-0.9-7.9-2.9c0.2-0.6,0.4-1.2,0.6-1.9c4.5-12.4,26.2-9,28.2-5.6c3.6,6.2,8.4,8.5,8.4,8.5 c0-6.5-4.8-12.1-4.8-12.1C415.5,217.5,417.4,212.9,417.4,212.9z M365.3,239.5c-0.7,0-1.3-0.6-1.3-1.3c0-0.7,0.6-1.3,1.3-1.3 c0.7,0,1.3,0.6,1.3,1.3C366.6,238.9,366.1,239.5,365.3,239.5z"/>
|
||||
<path style="fill:#FFA028;" d="M396.1,292.2c4.2-1.3,3.7-9.5,8.3-15.2c4.2-5.3,14.5-8.2,18.2-18.7c3.9-0.9,8.4,3.9,8.4,3.9 c0.3-8.9-4.9-13.1-8.1-14.7c-2.8-8.4-11.8-14.2-15.1-15.2c-4.2-1.4-6.1,0.4-10.2-2s-3.8,0-3.8,0c-0.4,4.3,2.6,7,7,11.9 c-4.1,4.6-1.9,10.9-1.9,10.9c1.2-4,4.5-4.8,6.8-4.8c0.4,0.5,0.8,1,1.2,1.6c7.6,10.8-7.4,26.6-11.4,26.3c-7.2-0.5-11.8,2.1-11.8,2.1 c5.3,3.7,12.7,3,12.7,3C393.4,288,396.1,292.2,396.1,292.2z M403.7,234.3c0.4-0.6,1.2-0.7,1.8-0.3c0.6,0.4,0.7,1.2,0.3,1.8 c-0.4,0.6-1.2,0.7-1.8,0.3C403.5,235.7,403.3,234.9,403.7,234.3z"/>
|
||||
<path style="fill:#FFA028;" d="M339.2,234.8c-0.6,4.4,7.1,7.4,10.3,13.9c3,6,1.3,16.6,9.3,24.4c-0.8,3.9-7,5.9-7,5.9 c7.9,4,13.9,1.1,16.7-1.1c8.8,1,17.8-4.8,20.1-7.3c3-3.3,2.2-5.7,6.1-8.4c3.9-2.8,1.6-3.5,1.6-3.5c-3.7-2.2-7.4-0.6-13.8,1.3 c-2.4-5.6-9.1-6.3-9.1-6.3c3.1,2.8,2.5,6.1,1.5,8.2c-0.7,0.1-1.3,0.3-2,0.4c-13,2.4-21-18-19.1-21.4c3.5-6.3,3.1-11.6,3.1-11.6 c-5.6,3.3-8,10.3-8,10.3C344.1,234.1,339.2,234.8,339.2,234.8z M388.5,266.1c0.4,0.6,0.2,1.4-0.5,1.8c-0.6,0.4-1.4,0.2-1.8-0.5 c-0.4-0.6-0.2-1.4,0.5-1.8C387.4,265.3,388.2,265.5,388.5,266.1z"/>
|
||||
</g>
|
||||
<path style="fill:#CDCE0C;" d="M386.1,334.7l-0.5-0.2c-71.6-24.9-60.1-143-59.9-144.2l0.2-2.1l2,0.9c0.3,0.2,33.6,14.9,57.3-2.9 l0.9-0.7l0.9,0.7c23.8,17.8,57,3.1,57.3,2.9l2-0.9l0.2,2.1c0.1,1.2,11.7,119.3-59.9,144.2L386.1,334.7z M328.6,192.7 c-1.2,15.8-6.1,116,57.5,138.7c63.6-22.7,58.7-122.9,57.5-138.7c-7.7,3-35.6,12.2-57.5-3.4C364.2,204.8,336.3,195.7,328.6,192.7z"/>
|
||||
<path style="fill:#82AFFF;" d="M346.2,295.8c8.7,15.8,21.4,29,39.9,35.6c18.5-6.6,31.2-19.8,39.9-35.6H346.2z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.1 KiB |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FFB400;" d="M0,387.466c1.077,20.215,17.807,36.277,38.292,36.277h435.359c21.18,0,38.349-17.169,38.349-38.349 v-73.479H0V387.466z"/>
|
||||
<path style="fill:#FF4B55;" d="M473.651,88.257H38.292c-20.485,0-37.215,16.062-38.292,36.277v75.552h512v-73.479 C512,105.427,494.831,88.257,473.651,88.257z"/>
|
||||
<rect y="200.089" style="fill:#41479B;" width="512" height="111.83"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 874 B |
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M512,126.621c0-21.177-17.167-38.345-38.345-38.345H38.345C17.167,88.276,0,105.443,0,126.621V256 h512V126.621z"/>
|
||||
<path style="fill:#464655;" d="M38.345,423.724h435.31c21.177,0,38.345-17.167,38.345-38.345V256H0v129.379 C0,406.557,17.167,423.724,38.345,423.724z"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M235.904,182.293l6.036,18.097l19.076,0.148c1.478,0.011,2.091,1.898,0.902,2.775l-15.346,11.332 l5.754,18.188c0.446,1.409-1.159,2.574-2.361,1.716l-15.52-11.093l-15.52,11.093c-1.203,0.86-2.807-0.307-2.361-1.716l5.754-18.188 l-15.346-11.332c-1.188-0.878-0.576-2.764,0.902-2.775l19.076-0.148l6.036-18.097C233.453,180.89,235.436,180.89,235.904,182.293z"/>
|
||||
<path style="fill:#FFE15A;" d="M317.487,335.944c0,0-109.206-82.385-112.43-85.092c-4.983-4.185-8.828-11.586-9.012-20.598 c0,0-11.777,12.064-9.471,24.552c2.667,14.436,10.943,19.586,21.61,26.574c7.496,4.911,67.087,42.495,101.875,64.419 L317.487,335.944z"/>
|
||||
<path style="fill:#FFE15A;" d="M350.162,360.092c-1.423-1.016-12.861-9.47-28.73-21.227l-5.759,10.472 c11.651,7.341,19.409,12.227,19.409,12.227s1.103,14.345,12.69,11.955C351.948,372.655,355.31,363.77,350.162,360.092z"/>
|
||||
<path style="fill:#FFE15A;" d="M255.863,322.053c-8.256,2.905-17.097,4.567-26.346,4.567c-23.442,0-44.445-10.212-58.987-26.36 l-12.928,11.635c4.333,4.812,8.96,9.347,14.175,13.217l-2.574,4.459l19.112,11.034l2.53-4.383 c8.634,3.755,17.916,6.282,27.638,7.383v5.084h22.069v-5.084c9.722-1.101,19.004-3.628,27.638-7.383l2.53,4.383l7.595-4.385 C270.899,331.543,263.3,326.749,255.863,322.053z"/>
|
||||
<path style="fill:#FFE15A;" d="M325.951,236.138c-1.101-9.722-3.628-19.004-7.383-27.637l4.383-2.53l-11.034-19.113l-4.459,2.574 c-5.708-7.691-12.509-14.492-20.201-20.2l2.574-4.459l-19.112-11.034l-2.53,4.383c-7.163-3.115-14.788-5.327-22.723-6.639 l-2.9,17.404c37.656,6.237,66.4,38.862,66.4,78.286c0,21.228-8.377,40.465-21.942,54.717c4.692,3.543,9.35,7.059,13.953,10.535 c2.23-2.442,4.504-4.847,6.482-7.511l4.459,2.574l11.034-19.112l-4.383-2.53c3.755-8.634,6.282-17.916,7.383-27.637h5.083V236.14 h-5.084L325.951,236.138L325.951,236.138z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 5.8 KiB |
@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M473.655,423.724H38.345C17.167,423.724,0,406.557,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.31c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<path style="fill:#FF4B55;" d="M507.384,403.634L56.713,256l450.671-147.634c-3.149-5.807-7.761-10.702-13.333-14.21L0,256 l494.051,161.844C499.624,414.336,504.234,409.441,507.384,403.634z"/>
|
||||
<path style="fill:#F5F5F5;" d="M507.384,403.634c2.944-5.428,4.616-11.646,4.616-18.253V126.622c0-6.609-1.673-12.826-4.616-18.254 L56.713,256L507.384,403.634z"/>
|
||||
<path style="fill:#FFF5DC;" d="M458.103,212.556c0,0,30.229,1.281,33.047-1.025c2.818-2.305,3.33-17.676-6.66-19.981 c-9.991-2.305-37.145,12.553-37.145,12.553L458.103,212.556z"/>
|
||||
<g>
|
||||
<path style="fill:#D27D69;" d="M398.926,236.381c0,0-0.342,0.854-0.512,4.611c-0.171,3.757,0.512,13.492,12.297,17.761 l-2.732,11.443l12.467,7.514c0,0,9.223-13.663,9.735-25.106C430.692,241.163,398.926,236.381,398.926,236.381z"/>
|
||||
<path style="fill:#D27D69;" d="M361.525,228.695l4.867-4.867c0,0-9.964,6.079-13.748,0.598c-4.952-7.172,1.708-14.687,8.625-18.018 c6.916-3.33,20.75-0.768,20.75-0.768l8.71,22.287l-26.386,16.651L361.525,228.695z"/>
|
||||
<path style="fill:#D27D69;" d="M443.245,186.17l23.569-2.818c0,0-6.916,9.991-20.494,17.42c0,0,14.09,0,18.188,4.867 c4.099,4.867-4.099,9.479-7.172,11.016c-3.074,1.537-29.716,17.932-29.716,17.932l-23.825-2.818L443.245,186.17z"/>
|
||||
<path style="fill:#D27D69;" d="M460.75,168.067c0,0,5.123-11.955,4.952-20.323l-17.249,11.955c0,0,3.928-1.878,2.562-8.71 l-56.359,30.57l-11.443,20.323l34.84,10.76L460.75,168.067z"/>
|
||||
</g>
|
||||
<path style="fill:#FFE15A;" d="M418.268,261.229l-5.892,9.351c0,0-10.504-2.305-14.09,0.256c-3.586,2.562-3.97,12.169,2.305,12.937 c0,0,4.355,2.69,6.916,0.512c0,0,5.251,2.049,6.148-1.281c0.897-3.33-0.256-6.148-0.256-6.148h3.714l6.532-11.656L418.268,261.229z"/>
|
||||
<path style="fill:#B95546;" d="M365.624,240.992c0,0,16.395-8.198,16.395-20.494c0-12.297-15.2-12.98-27.496-8.881 c0,0-7.343-5.806-1.195-11.614c8.428-7.96,45.087-24.593,45.087-24.593l-4.099,20.494c0,0,14.602,7.686,20.494,4.099 c4.951-3.014,53.284-40.988,53.284-40.988s-4.099,20.494-32.79,40.988l-3.04,15.201c-0.668,3.34-2.84,6.184-5.887,7.706 l-11.567,5.783c0,0,32.79,4.099,32.79,8.198c0,4.098-8.198,24.593-24.593,32.79l-8.197-8.198l4.099-12.297 c0,0-12.297-4.099-20.494-8.198c0,0-12.297,4.099-20.494,4.099C369.724,245.09,365.624,240.992,365.624,240.992z"/>
|
||||
<path style="fill:#FFF5DC;" d="M341.032,261.486v-8.516c0-2.42,0.961-4.742,2.673-6.453l17.822-17.822l4.099,8.198h16.395 l-4.099,4.099v4.099l-20.494,12.297L341.032,261.486z"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M349.229,257.387h-8.197c0,0-8.198,12.297,0,12.297c0,0,12.297-8.198,16.395-12.297 C357.427,257.387,357.427,253.288,349.229,257.387z"/>
|
||||
<path style="fill:#FFE15A;" d="M449.21,275.569h-56.663c-0.467-0.503-1.12-0.828-1.86-0.828c0,0-9.926-4.114-11.337-4.114h-1.163 c-1.411,0-2.556,1.144-2.556,2.556v2.386h-12.953v-2.386c0-1.411-1.144-2.556-2.556-2.556h-1.163c-1.411,0-2.556,1.144-2.556,2.556 v0.043c-5.551-0.226-17.42-0.934-23.569-2.983l-32.79,8.198l32.79,8.198c6.147-2.049,18.016-2.758,23.569-2.984v0.043 c0,1.411,1.144,2.556,2.556,2.556h1.163c1.411,0,2.556-1.144,2.556-2.556v-2.386h12.953v2.386c0,1.411,1.144,2.556,2.556,2.556 h1.163c1.411,0,11.337-4.114,11.337-4.114c0.74,0,1.394-0.324,1.86-0.828h56.663c1.587,0,2.872-1.287,2.872-2.872 C452.083,276.855,450.797,275.569,449.21,275.569z"/>
|
||||
<path style="fill:#FFE15A;" d="M446.746,286.591c-3.416-0.683-42.525,6.148-42.525,6.148s-2.391-2.391,4.781-9.052l-3.415-0.854 c0,0-7.514,5.294-10.589,5.977c-2.647,0.588-8.562,3.464-9.833,7.303l-23.812,3.969l0.512,2.049l23.357-2.738 c1.115,3.588,4.786,4.32,7.384,3.25c0,0,3.416,1.366,6.49-1.025c0,0,6.148,1.025,6.489-4.611l42.867-6.49 C448.454,290.519,450.162,287.274,446.746,286.591z"/>
|
||||
<path style="fill:#FFE15A;" d="M422.495,315.454c0,0-3.245,4.269-11.272,0.512c-8.026-3.757-17.42,0.342-22.543-0.854 s-12.809-4.269-19.981-1.537c-7.172,2.732-11.101,2.562-9.564-0.854c1.537-3.415,2.391-5.977,0-7.172l2.732-3.416l-0.512-2.049 c0,0-13.663-5.294-22.884,2.049c-9.223,7.343-6.489,24.081,8.881,25.276c0,0,4.782,5.977,16.566,4.269 c0,0,7.686,5.294,20.835,2.903c0,0,0.512,1.537,9.052,0.854c8.54-0.683,18.103,0.342,16.395,6.148c0,0,6.319-1.195,2.562-7.003 c0,0,7.514-0.342,12.638,4.099c0,0,0.342-5.123-4.611-7.857c0,0,8.369-2.903,12.98,0c0,0-3.074-6.489-11.272-5.635 c0,0,5.977-4.782,8.71-3.586c0,0-2.562-3.074-10.077,0C421.129,321.601,425.911,318.698,422.495,315.454z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.9 KiB |
@ -1,39 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M473.655,88.276H38.345C17.167,88.276,0,105.443,0,126.621v73.471h512v-73.471 C512,105.443,494.833,88.276,473.655,88.276z"/>
|
||||
<path style="fill:#FF4B55;" d="M0,385.379c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345 v-73.471H0V385.379z"/>
|
||||
</g>
|
||||
<rect y="200.09" style="fill:#F5F5F5;" width="512" height="111.81"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 878 B |
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M473.655,88.275H38.345C17.167,88.275,0,105.442,0,126.62V385.38 c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345V126.62 C512,105.442,494.833,88.275,473.655,88.275z"/>
|
||||
<path style="fill:#F5F5F5;" d="M8.828,255.999h15.334l81.77-53.574v53.574h44.138v-53.574l81.769,53.574h15.334 c4.875,0,8.828-3.953,8.828-8.828v-7.002l-70.155-45.963H256v-44.138h-70.155L256,104.105v-7.002c0-4.876-3.953-8.828-8.828-8.828 h-15.334l-81.77,53.574V88.275H105.93v53.574L26.844,90.033c-9.234,2.9-16.954,9.203-21.711,17.434l65.023,42.601H0v44.138h70.155 L0,240.169v7.002C0,252.046,3.951,255.999,8.828,255.999z"/>
|
||||
<g>
|
||||
<polygon style="fill:#FF4B55;" points="256,158.896 141.241,158.896 141.241,88.275 114.759,88.275 114.759,158.896 0,158.896 0,185.378 114.759,185.378 114.759,255.999 141.241,255.999 141.241,185.378 256,185.378 "/>
|
||||
<path style="fill:#FF4B55;" d="M8.227,102.901l72.662,47.167h16.214l-82.496-53.55C12.238,98.388,10.097,100.531,8.227,102.901z"/>
|
||||
<path style="fill:#FF4B55;" d="M166.283,150.068l88.374-57.366c-1.536-2.599-4.246-4.427-7.485-4.427h-1.91l-95.193,61.793H166.283 z"/>
|
||||
<path style="fill:#FF4B55;" d="M89.474,194.206L1.269,251.462c1.521,2.662,4.273,4.537,7.559,4.537h1.665l95.196-61.793H89.474z"/>
|
||||
<path style="fill:#FF4B55;" d="M255.86,247.865l-82.666-53.658H156.98l93.874,60.935 C253.666,253.837,255.595,251.102,255.86,247.865z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M130.671,304.13l6.663,21.997l21.353-8.505c1.822-0.726,3.478,1.352,2.366,2.966l-13.044,18.924 l19.962,11.391c1.703,0.972,1.112,3.562-0.844,3.699l-22.929,1.601l3.541,22.709c0.302,1.938-2.092,3.091-3.418,1.646 l-15.548-16.928l-15.548,16.928c-1.326,1.444-3.72,0.291-3.418-1.646l3.541-22.709l-22.929-1.601 c-1.956-0.137-2.548-2.727-0.844-3.699l19.962-11.391l-13.044-18.924c-1.112-1.614,0.544-3.692,2.366-2.966l21.353,8.505 l6.663-21.997C127.446,302.253,130.103,302.253,130.671,304.13z"/>
|
||||
<path style="fill:#F5F5F5;" d="M393.279,147.729l3.255,10.745l10.43-4.154c0.889-0.354,1.699,0.66,1.155,1.449l-6.371,9.245 l9.751,5.565c0.832,0.474,0.543,1.74-0.413,1.806l-11.2,0.782l1.729,11.093c0.148,0.947-1.022,1.51-1.67,0.804l-7.595-8.269 l-7.595,8.269c-0.648,0.705-1.817,0.142-1.67-0.804l1.729-11.093l-11.2-0.782c-0.956-0.067-1.245-1.332-0.413-1.806l9.751-5.565 l-6.371-9.245c-0.544-0.789,0.266-1.803,1.155-1.449l10.431,4.154l3.255-10.745C391.703,146.811,393.002,146.811,393.279,147.729z"/>
|
||||
<path style="fill:#F5F5F5;" d="M320.702,230.204l3.255,10.745l10.431-4.154c0.889-0.354,1.699,0.66,1.155,1.449l-6.371,9.245 l9.751,5.565c0.832,0.474,0.543,1.74-0.413,1.806l-11.2,0.782l1.73,11.093c0.148,0.947-1.022,1.51-1.67,0.804l-7.595-8.269 l-7.595,8.269c-0.648,0.705-1.817,0.142-1.67-0.804l1.73-11.093l-11.2-0.782c-0.956-0.067-1.245-1.332-0.413-1.806l9.751-5.565 l-6.371-9.245c-0.544-0.789,0.266-1.803,1.155-1.449l10.431,4.154l3.255-10.745C319.126,229.287,320.424,229.287,320.702,230.204z"/>
|
||||
<path style="fill:#F5F5F5;" d="M461.943,194.893l3.255,10.745l10.431-4.154c0.889-0.354,1.699,0.66,1.155,1.449l-6.371,9.245 l9.751,5.565c0.832,0.474,0.543,1.74-0.413,1.806l-11.2,0.782l1.73,11.093c0.148,0.947-1.022,1.51-1.67,0.804l-7.595-8.269 l-7.595,8.269c-0.648,0.705-1.817,0.142-1.669-0.804l1.73-11.093l-11.2-0.782c-0.956-0.067-1.245-1.332-0.413-1.806l9.751-5.565 l-6.371-9.245c-0.544-0.789,0.266-1.803,1.155-1.449l10.431,4.154l3.255-10.745C460.367,193.977,461.665,193.977,461.943,194.893z"/>
|
||||
<path style="fill:#F5F5F5;" d="M393.279,336.135l3.255,10.745l10.43-4.155c0.889-0.354,1.699,0.66,1.155,1.449l-6.371,9.245 l9.751,5.565c0.832,0.474,0.543,1.74-0.413,1.806l-11.2,0.782l1.729,11.093c0.148,0.947-1.022,1.51-1.67,0.804l-7.595-8.269 l-7.595,8.269c-0.648,0.705-1.817,0.142-1.67-0.804l1.729-11.093l-11.2-0.782c-0.956-0.066-1.245-1.332-0.413-1.806l9.751-5.565 l-6.371-9.245c-0.544-0.789,0.266-1.803,1.155-1.449l10.431,4.155l3.255-10.745C391.703,335.219,393.002,335.219,393.279,336.135z"/>
|
||||
<path style="fill:#F5F5F5;" d="M418.461,249.512l-2.613,7.836l-8.259,0.064c-1.069,0.009-1.513,1.373-0.652,2.008l6.644,4.907 l-2.492,7.875c-0.322,1.02,0.839,1.863,1.708,1.241l6.72-4.803l6.72,4.803c0.87,0.621,2.03-0.222,1.708-1.241l-2.492-7.875 l6.645-4.907c0.861-0.636,0.417-1.999-0.652-2.008l-8.259-0.064l-2.613-7.836C420.234,248.498,418.799,248.498,418.461,249.512z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.7 KiB |
@ -1,41 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 511.997 511.997" style="enable-background:new 0 0 511.997 511.997;" xml:space="preserve">
|
||||
<path style="fill:#4173CD;" d="M473.601,423.703H38.34c-21.175,0-38.34-17.165-38.34-38.34V126.634 c0-21.175,17.165-38.34,38.34-38.34h435.261c21.175,0,38.34,17.165,38.34,38.34v258.729 C511.942,406.538,494.776,423.703,473.601,423.703z"/>
|
||||
<g>
|
||||
<rect x="0.057" y="317.789" style="fill:#FFE15A;" width="511.94" height="17.653"/>
|
||||
<rect x="0.057" y="353.099" style="fill:#FFE15A;" width="511.94" height="17.653"/>
|
||||
</g>
|
||||
<polygon style="fill:#FF4B55;" points="65.282,175.949 32.438,164.734 65.282,153.519 76.498,120.678 87.713,153.519 120.557,164.734 87.713,175.949 76.498,208.791 "/>
|
||||
<path style="fill:#F5F5F5;" d="M76.498,126.58l9.713,28.441l28.441,9.713l-28.441,9.713l-9.713,28.441l-9.713-28.441l-28.441-9.713 l28.441-9.713L76.498,126.58 M76.498,114.773l-3.611,10.573l-9.107,26.67l-26.67,9.107l-10.573,3.61l10.573,3.61l26.67,9.107 l9.107,26.67l3.611,10.573l3.611-10.573l9.107-26.67l26.67-9.107l10.573-3.61l-10.573-3.61l-26.67-9.107l-9.107-26.669 L76.498,114.773L76.498,114.773z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.5 KiB |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#4173CD;" d="M473.654,423.724H38.345C17.167,423.724,0,406.556,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.309c21.177,0,38.345,17.167,38.345,38.345v258.758 C511.999,406.556,494.831,423.724,473.654,423.724z"/>
|
||||
<polygon style="fill:#FFE15A;" points="512,211.862 229.517,211.862 229.517,88.276 141.241,88.276 141.241,211.862 0,211.862 0,300.138 141.241,300.138 141.241,423.724 229.517,423.724 229.517,300.138 512,300.138 "/>
|
||||
<polygon style="fill:#FF4B55;" points="512,238.345 203.034,238.345 203.034,88.276 167.724,88.276 167.724,238.345 0,238.345 0,273.655 167.724,273.655 167.724,423.724 203.034,423.724 203.034,273.655 512,273.655 "/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,41 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M0,387.466c1.077,20.215,17.807,36.277,38.292,36.277h435.359c21.18,0,38.349-17.169,38.349-38.349 v-73.479H0V387.466z"/>
|
||||
<path style="fill:#82AFFF;" d="M473.651,88.257H38.292c-20.485,0-37.215,16.062-38.292,36.277v75.552h512v-73.479 C512,105.427,494.831,88.257,473.651,88.257z"/>
|
||||
<rect y="200.089" style="fill:#FF4B55;" width="512" height="111.83"/>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M268.071,292.611c-19.812,0-35.885-16.072-35.885-35.903c0-19.795,16.072-35.903,35.885-35.903 c7.372,0,14.17,2.267,19.835,6.104c0.867,0.588,1.857-0.553,1.131-1.308c-8.467-8.802-20.45-14.173-33.736-13.72 c-22.826,0.779-41.723,19.08-43.182,41.873c-1.671,26.107,19.001,47.803,44.74,47.803c12.678,0,24.072-5.3,32.21-13.775 c0.718-0.748-0.274-1.872-1.132-1.289C282.265,290.341,275.456,292.611,268.071,292.611z"/>
|
||||
<path style="fill:#F5F5F5;" d="M299.486,234.608l3.723,10.468l10.035-4.77c0.756-0.36,1.545,0.429,1.185,1.185l-4.771,10.035 l10.468,3.723c0.789,0.28,0.789,1.396,0,1.676l-10.468,3.723l4.771,10.035c0.36,0.756-0.429,1.545-1.185,1.185l-10.035-4.77 l-3.723,10.469c-0.28,0.789-1.396,0.789-1.676,0l-3.723-10.468l-10.035,4.77c-0.756,0.36-1.545-0.429-1.185-1.185l4.77-10.035 l-10.468-3.723c-0.789-0.28-0.789-1.396,0-1.676l10.468-3.723l-4.77-10.035c-0.36-0.756,0.429-1.545,1.185-1.185l10.035,4.77 l3.723-10.468C298.091,233.821,299.206,233.821,299.486,234.608z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.8 KiB |
@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M473.655,423.724H38.345C17.167,423.724,0,406.557,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.31c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<polygon style="fill:#FFE15A;" points="441.378,88.276 441.378,423.724 105.93,88.276 "/>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M207.351,213.176l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.17-1.991,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.724-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C205.286,211.994,206.957,211.994,207.351,213.176z"/>
|
||||
<path style="fill:#F5F5F5;" d="M170.57,176.394l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.6,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.17-1.991,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.725-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C168.504,175.212,170.176,175.212,170.57,176.394z"/>
|
||||
<path style="fill:#F5F5F5;" d="M133.789,139.613l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.17-1.991,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.725-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C131.722,138.431,133.394,138.431,133.789,139.613z"/>
|
||||
<path style="fill:#F5F5F5;" d="M97.006,102.831l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.17-1.991,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.724-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C94.941,101.65,96.612,101.65,97.006,102.831z"/>
|
||||
<path style="fill:#F5F5F5;" d="M354.478,360.302l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.171-1.99,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.724-2.366-0.258-1.99-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C352.413,359.121,354.084,359.121,354.478,360.302z"/>
|
||||
<path style="fill:#F5F5F5;" d="M317.696,323.521l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.171-1.99,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.724-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C315.63,322.339,317.302,322.339,317.696,323.521z"/>
|
||||
<path style="fill:#F5F5F5;" d="M280.915,286.74l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.171-1.99,1.446l-13.082-9.351l-13.082,9.351c-1.013,0.724-2.366-0.258-1.991-1.446l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C278.849,285.558,280.521,285.558,280.915,286.74z"/>
|
||||
<path style="fill:#F5F5F5;" d="M244.134,249.958l5.088,15.254l16.079,0.125c1.246,0.01,1.762,1.599,0.76,2.339l-12.936,9.553 l4.851,15.331c0.376,1.187-0.977,2.17-1.991,1.445l-13.082-9.351l-13.082,9.351c-1.013,0.725-2.366-0.258-1.991-1.445l4.851-15.331 l-12.936-9.553c-1.002-0.74-0.486-2.329,0.76-2.339l16.079-0.125l5.088-15.254C242.068,248.776,243.738,248.776,244.134,249.958z"/>
|
||||
<path style="fill:#F5F5F5;" d="M41.942,88.276l6.83,5.044l-4.851,15.331c-0.375,1.187,0.977,2.17,1.991,1.447l13.081-9.351 l13.082,9.351c1.013,0.724,2.366-0.258,1.99-1.447l-4.85-15.331l6.833-5.044H41.942z"/>
|
||||
<path style="fill:#F5F5F5;" d="M412.427,412.463l-16.079-0.125l-5.087-15.254c-0.394-1.182-2.066-1.182-2.46,0l-5.087,15.254 l-16.079,0.125c-1.246,0.01-1.762,1.6-0.76,2.339l12.083,8.921h22.151l12.082-8.921 C414.189,414.062,413.673,412.472,412.427,412.463z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.2 KiB |
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M38.345,423.721h132.322V88.273H38.345C17.167,88.273,0,105.44,0,126.618v258.759 C0,406.554,17.167,423.721,38.345,423.721z"/>
|
||||
<rect x="170.67" y="88.277" style="fill:#FFE15A;" width="170.67" height="335.45"/>
|
||||
<path style="fill:#41479B;" d="M473.655,423.721c21.177,0,38.345-17.167,38.345-38.345V126.618 c0-21.177-17.167-38.345-38.345-38.345H341.334v335.448H473.655z"/>
|
||||
<path style="fill:#464655;" d="M326.621,207.253c0,0-24.564,0-42.987,18.423h12.281c0,0-11.898,21.493-18.039,58.339l-12.665-2.068 v-56.455l12.281,4.021L256,176.549l-21.493,52.966l12.281-4.095v56.527l-12.665,2.068c-6.141-36.845-18.039-58.339-18.039-58.339 h12.281c-18.422-18.422-42.986-18.422-42.986-18.422c30.705,36.845,30.705,98.255,30.705,98.255l30.705-5.117v41.963h18.423v-41.963 l30.705,5.117C295.916,305.509,295.916,244.099,326.621,207.253z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.3 KiB |
@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M473.655,423.724H38.345C17.167,423.724,0,406.557,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.31c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<circle style="fill:#FF4B55;" cx="220.69" cy="256" r="114.76"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 796 B |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 511.9 511.9" style="enable-background:new 0 0 511.9 511.9;" xml:space="preserve">
|
||||
<path style="fill:#FFE15A;" d="M473.7,423.65H38.3c-21.1,0-38.3-17.1-38.3-38.3v-258.8c0-21.2,17.2-38.3,38.3-38.3h435.3 c21.2,0,38.3,17.2,38.3,38.3v258.8C512,406.55,494.8,423.65,473.7,423.65z"/>
|
||||
<path style="fill:#464655;" d="M38.3,88.25c-21.1,0-38.3,17.1-38.3,38.3v258.8c0,21.2,17.2,38.3,38.3,38.3h132.3V88.25H38.3z"/>
|
||||
<path style="fill:#FF4B55;" d="M473.7,88.25H341.3l0,0v335.4l0,0h132.3c21.2,0,38.3-17.2,38.3-38.3v-258.8 C512,105.35,494.8,88.25,473.7,88.25z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 966 B |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M473.651,88.257H38.292c-20.485,0-37.215,16.061-38.292,36.277V256h512V126.606 C512,105.426,494.831,88.257,473.651,88.257z"/>
|
||||
<path style="fill:#73AF00;" d="M0,387.466c1.077,20.215,17.807,36.277,38.292,36.277h435.359c21.18,0,38.349-17.169,38.349-38.349 V256H0V387.466z"/>
|
||||
<path style="fill:#FFE15A;" d="M258.715,207.849l11.107,33.304l35.106,0.273c2.72,0.021,3.847,3.492,1.66,5.107l-28.242,20.855 l10.59,33.472c0.82,2.593-2.132,4.739-4.345,3.156l-28.563-20.414l-28.562,20.415c-2.213,1.581-5.166-0.564-4.345-3.156 l10.59-33.472l-28.242-20.855c-2.188-1.616-1.061-5.086,1.66-5.107l35.106-0.273l11.107-33.304 C254.204,205.269,257.854,205.269,258.715,207.849z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M38.345,423.724h435.31c21.177,0,38.345-17.167,38.345-38.345v-73.471H0v73.471 C0,406.557,17.167,423.724,38.345,423.724z"/>
|
||||
<path style="fill:#F5F5F5;" d="M512,126.621c0-21.177-17.167-38.345-38.345-38.345H38.345C17.167,88.276,0,105.443,0,126.621v73.471 h512V126.621z"/>
|
||||
<rect y="200.09" style="fill:#73AF00;" width="512" height="111.81"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 864 B |
@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M38.345,423.724h102.898l70.621-20.966l-70.621-20.966l70.621-20.966l-70.621-20.966l70.621-20.966 l-70.621-20.966l70.621-20.966L141.242,256l70.621-20.966l-70.621-20.966l70.621-20.966l-70.621-20.966l70.621-20.966 l-70.621-20.966l70.621-20.966l-70.621-20.966H38.345C17.167,88.276,0,105.443,0,126.621V385.38 C0,406.557,17.167,423.724,38.345,423.724z"/>
|
||||
<path style="fill:#FF4B55;" d="M141.241,130.207l70.621,20.966l-70.621,20.966l70.621,20.966l-70.621,20.966l70.621,20.966 L141.241,256l70.621,20.966l-70.621,20.966l70.621,20.966l-70.621,20.966l70.621,20.966l-70.621,20.966l70.621,20.966 l-70.621,20.966h332.414c21.177,0,38.345-17.167,38.345-38.345V126.621c0-21.177-17.167-38.345-38.345-38.345H141.242l70.621,20.966 L141.241,130.207z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1,46 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 511.999 511.999" style="enable-background:new 0 0 511.999 511.999;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M473.651,88.257H38.292c-20.485,0-37.215,16.061-38.292,36.277v262.933 c1.042,19.56,16.739,35.23,36.311,36.226h439.32c20.259-1.031,36.368-17.783,36.368-38.298V126.606 C512,105.426,494.831,88.257,473.651,88.257z"/>
|
||||
<g>
|
||||
<polygon style="fill:#FF4B55;" points="40.27,88.206 256.029,229.565 471.787,88.206 "/>
|
||||
<polygon style="fill:#FF4B55;" points="471.787,423.793 256.029,282.434 40.27,423.793 "/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M473.651,88.257h-1.941L307.731,195.689c-13.902-11.938-31.94-19.198-51.702-19.198 c-19.763,0-37.801,7.259-51.702,19.198L40.349,88.257h-2.057c-17.356,0-32.011,11.532-36.74,27.35l178.527,116.965 c-2.272,7.392-3.507,15.24-3.507,23.377s1.235,15.984,3.507,23.377L1.527,396.307c4.522,15.255,18.27,26.545,34.783,27.385h3.96 l164.056-107.484c13.902,11.938,31.94,19.198,51.702,19.198c19.763,0,37.801-7.259,51.702-19.198l164.056,107.484h3.844 c16.537-0.841,30.3-12.161,34.802-27.449L331.979,279.326c2.272-7.392,3.507-15.24,3.507-23.377c0-8.137-1.235-15.985-3.507-23.377 l178.43-116.901C505.701,99.82,491.03,88.257,473.651,88.257z"/>
|
||||
<polygon style="fill:#FF4B55;" points="250.309,230.541 238.337,230.851 244.588,220.634 238.337,210.418 250.309,210.728 256.029,200.201 261.75,210.728 273.721,210.418 267.469,220.634 273.721,230.851 261.75,230.541 256.029,241.068 "/>
|
||||
<path style="fill:#73AF00;" d="M256.029,202.977l4.944,9.093l10.347-0.265l-5.403,8.829l5.403,8.829l-10.347-0.265l-4.944,9.093 l-4.944-9.093l-10.347,0.265l5.403-8.829l-5.403-8.829l10.347,0.265L256.029,202.977 M256.029,197.433l-2.327,4.28l-4.169,7.67 l-8.727-0.224l-4.87-0.125l2.543,4.156l4.558,7.446l-4.558,7.446l-2.543,4.156l4.87-0.125l8.727-0.224l4.169,7.67l2.327,4.28 l2.327-4.28l4.169-7.67l8.727,0.224l4.87,0.125l-2.543-4.156l-4.558-7.446l4.558-7.446l2.543-4.156l-4.87,0.125l-8.727,0.224 l-4.169-7.67L256.029,197.433L256.029,197.433z"/>
|
||||
<polygon style="fill:#FF4B55;" points="217.431,289.057 205.46,289.367 211.71,279.151 205.46,268.934 217.431,269.245 223.151,258.718 228.872,269.245 240.842,268.934 234.592,279.151 240.842,289.367 228.872,289.057 223.151,299.584 "/>
|
||||
<path style="fill:#73AF00;" d="M223.151,261.493l4.944,9.093l10.347-0.265l-5.403,8.829l5.403,8.829l-10.347-0.265l-4.944,9.093 l-4.944-9.093l-10.347,0.265l5.403-8.829l-5.403-8.829l10.347,0.265L223.151,261.493 M223.151,255.949l-2.327,4.28l-4.169,7.67 l-8.727-0.224l-4.87-0.125l2.543,4.156l4.558,7.446l-4.558,7.446l-2.543,4.155l4.87-0.125l8.727-0.224l4.169,7.67l2.327,4.28 l2.327-4.28l4.169-7.67l8.727,0.224l4.87,0.125l-2.543-4.156l-4.558-7.446l4.558-7.446l2.543-4.156l-4.87,0.125l-8.727,0.224 l-4.169-7.67L223.151,255.949L223.151,255.949z"/>
|
||||
<polygon style="fill:#FF4B55;" points="283.187,289.057 271.215,289.367 277.466,279.151 271.215,268.934 283.187,269.245 288.906,258.718 294.627,269.245 306.599,268.934 300.348,279.151 306.599,289.367 294.627,289.057 288.906,299.584 "/>
|
||||
<path style="fill:#73AF00;" d="M288.906,261.493l4.944,9.093l10.347-0.265l-5.403,8.829l5.403,8.829l-10.347-0.265l-4.944,9.093 l-4.944-9.093l-10.347,0.265l5.403-8.829l-5.403-8.829l10.347,0.265L288.906,261.493 M288.906,255.949l-2.327,4.28l-4.169,7.67 l-8.727-0.224l-4.87-0.125l2.543,4.156l4.558,7.446l-4.558,7.446l-2.543,4.156l4.87-0.125l8.727-0.224l4.169,7.67l2.327,4.28 l2.327-4.28l4.169-7.67l8.727,0.224l4.87,0.125l-2.543-4.156l-4.558-7.446l4.558-7.446l2.543-4.156l-4.87,0.125l-8.727,0.224 l-4.169-7.67L288.906,255.949L288.906,255.949z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.8 KiB |
@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FFE15A;" d="M512,126.621c0-21.177-17.167-38.345-38.345-38.345H38.345C17.167,88.276,0,105.443,0,126.621V256 h512V126.621z"/>
|
||||
<path style="fill:#FF4B55;" d="M38.345,423.724h435.31c21.177,0,38.345-17.167,38.345-38.345V256H0v129.379 C0,406.557,17.167,423.724,38.345,423.724z"/>
|
||||
<path style="fill:#73AF00;" d="M38.115,423.719h132.551V88.276H38.345C17.167,88.276,0,105.443,0,126.621V385.38 C0,406.479,17.045,423.594,38.115,423.719z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 945 B |
@ -1,72 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#F5F5F5;" d="M473.655,423.724H38.345C17.167,423.724,0,406.557,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.31c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<g>
|
||||
<path style="fill:#FFECD7;" d="M208.865,322.152c-20.38-4.652-38.549-15.174-52.606-29.714v31.097 c15.339,11.188,33.236,19.028,52.606,22.613V322.152z"/>
|
||||
<path style="fill:#FFECD7;" d="M303.085,322.152c20.38-4.652,38.549-15.174,52.606-29.714v31.097 c-15.339,11.188-33.236,19.028-52.606,22.613V322.152z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M199.836,254.75c-0.981,0.196-2.356,2.748-2.748,7.066c-0.393,4.319-3.14,22.573-9.03,20.61 c-5.889-1.963-9.814-10.6-9.814-10.6L170,283.8c0,0,5.496-2.159,11.189,0.393s7.066,3.926,8.637,2.356 c1.57-1.57,5.3-6.281,8.244-5.889l3.337-23.752L199.836,254.75z"/>
|
||||
<path style="fill:#FFE15A;" d="M167.252,293.812c0,0-1.374,11.385-0.589,12.759c0.786,1.374,22.377,6.477,22.377,6.477 s-6.281,5.103-6.477,7.852c0,0-7.656,1.374-10.403,3.73l-10.207-16.881l-0.393-13.937L167.252,293.812L167.252,293.812 L167.252,293.812z"/>
|
||||
</g>
|
||||
<path style="fill:#FFECD7;" d="M160.43,190.269l0.147-5.889c0,0-6.92-0.736-7.802,14.869l-2.503-6.92c0,0-5.153,6.92-2.061,18.108 l-1.325,1.031c0,0-6.772-8.98-10.894-20.61c0,0-6.92,5.447,1.177,20.905l-10.01-12.661c0,0-5.005,10.6,10.01,23.261l-14.133-10.01 c0,0-0.883,11.484,12.808,18.844l-13.692-7.361c0,0,0.441,11.041,16.341,16.489l-15.017-2.797c0,0,3.802,9.027,14.906,11.463 c-2.332,2.603-4.486,6.101-5.043,10.62l11.189-6.184c0,0-5.3,5.447-3.828,12.956l17.225-17.225l-2.354-1.053 c13.031-2.444,10.304-3.364,10.304-3.364s-9.619-24.733-3.14-41.81c6.477-17.077,12.17-19.433,12.17-20.218 C174.906,181.926,167.938,180.993,160.43,190.269z"/>
|
||||
<path style="fill:#FFE15A;" d="M173.729,200.181c0,0,22.377,23.555,22.77,25.715c0.393,2.159-2.356,1.767-2.356,1.767 s-5.496-7.066-12.956-9.814c-7.459-2.748-12.366-11.385-15.31-13.347C162.933,202.537,173.729,200.181,173.729,200.181z"/>
|
||||
<path style="fill:#FFF5E1;" d="M166.27,205.874c2.944,0.981,9.619-0.393,9.422-6.477c-0.196-6.086-6.281-8.44-10.796-7.066 c-4.514,1.374-12.956,7.656-7.656,19.826c5.3,12.17,13.152,16.685,14.722,27.089c0,0-7.066,1.079-10.796,0.196 c-3.206-0.759-8.637-3.337-7.459-10.403c1.177-7.066,3.926-11.189,1.57-15.115c-2.356-3.926-9.814-10.796-9.814-10.796 s-16.096,41.222,12.956,52.018c0,0-13.74,13.152-20.61,25.91l4.122,1.177c0,0-7.263,7.852-11.385,10.796 c0,0,13.544,4.711,26.892-10.6c0,0,3.337,5.496,4.122,11.385h5.693c0,0,1.963-9.422,10.993-17.273 c9.03-7.852,18.194-19.048,17.273-29.248c-1.079-11.974-10.097-17.361-19.482-24.782C163.374,212.499,166.27,205.874,166.27,205.874 z"/>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M312.164,254.75c0.981,0.196,2.356,2.748,2.748,7.066c0.393,4.319,3.14,22.573,9.03,20.61 c5.889-1.963,9.815-10.6,9.815-10.6l8.244,11.974c0,0-5.496-2.159-11.189,0.393s-7.066,3.926-8.637,2.356 c-1.57-1.57-5.3-6.281-8.244-5.889l-3.337-23.752L312.164,254.75z"/>
|
||||
<path style="fill:#FFE15A;" d="M344.748,293.812c0,0,1.374,11.385,0.589,12.759c-0.786,1.374-22.377,6.477-22.377,6.477 s6.281,5.103,6.477,7.852c0,0,7.656,1.374,10.403,3.73l10.207-16.881l0.393-13.937h-5.693v0H344.748z"/>
|
||||
</g>
|
||||
<path style="fill:#FFECD7;" d="M351.57,190.269l-0.147-5.889c0,0,6.92-0.736,7.802,14.869l2.503-6.92c0,0,5.153,6.92,2.061,18.108 l1.325,1.031c0,0,6.772-8.98,10.894-20.61c0,0,6.92,5.447-1.177,20.905l10.01-12.661c0,0,5.005,10.6-10.01,23.261l14.133-10.01 c0,0,0.884,11.484-12.808,18.844l13.692-7.361c0,0-0.441,11.041-16.341,16.489l15.017-2.797c0,0-3.802,9.027-14.906,11.463 c2.332,2.603,4.486,6.101,5.043,10.62l-11.189-6.184c0,0,5.3,5.447,3.828,12.956l-17.225-17.225l2.354-1.053 c-13.032-2.444-10.304-3.364-10.304-3.364s9.619-24.733,3.14-41.81c-6.478-17.077-12.17-19.433-12.17-20.218 C337.094,181.926,344.062,180.993,351.57,190.269z"/>
|
||||
<path style="fill:#FFE15A;" d="M338.271,200.181c0,0-22.377,23.555-22.77,25.715c-0.393,2.159,2.356,1.767,2.356,1.767 s5.496-7.066,12.956-9.814c7.459-2.748,12.366-11.385,15.31-13.347S338.271,200.181,338.271,200.181z"/>
|
||||
<path style="fill:#FFF5E1;" d="M345.73,205.874c-2.944,0.981-9.619-0.393-9.422-6.477c0.196-6.086,6.281-8.44,10.796-7.066 c4.514,1.374,12.956,7.656,7.656,19.826s-13.152,16.685-14.722,27.089c0,0,7.066,1.079,10.796,0.196 c3.206-0.759,8.637-3.337,7.459-10.403c-1.177-7.066-3.926-11.189-1.57-15.115s9.814-10.796,9.814-10.796 s16.096,41.222-12.956,52.018c0,0,13.74,13.152,20.61,25.91l-4.122,1.177c0,0,7.263,7.852,11.385,10.796 c0,0-13.544,4.711-26.892-10.6c0,0-3.337,5.496-4.122,11.385h-5.693c0,0-1.963-9.422-10.993-17.273 c-9.03-7.852-18.194-19.048-17.273-29.248c1.079-11.974,10.097-17.361,19.482-24.782C348.626,212.499,345.73,205.874,345.73,205.874 z"/>
|
||||
<rect x="199.45" y="166.03" style="fill:#464655;" width="113.06" height="22.77"/>
|
||||
<path style="fill:#41479B;" d="M255.976,184.085h-56.532c0,0,0,61.244,0,75.377s9.422,51.821,56.532,65.954 c47.11-14.133,56.532-51.821,56.532-65.954s0-75.377,0-75.377H255.976z"/>
|
||||
<path style="fill:#FF4B55;" d="M199.444,259.462c0,3.502,0.585,8.456,2.172,14.133h108.721c1.587-5.677,2.172-10.631,2.172-14.133 v-28.266H199.444V259.462z"/>
|
||||
<g>
|
||||
<polygon style="fill:#F5F5F5;" points="255.976,252.395 249.38,268.883 255.976,265.586 262.571,268.883 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="255.976,252.395 262.571,235.906 255.976,239.204 249.38,235.906 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="255.976,252.395 239.487,245.8 242.785,252.395 239.487,258.99 "/>
|
||||
<polygon style="fill:#F5F5F5;" points="255.976,252.395 272.463,258.99 269.166,252.395 272.463,245.8 "/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M263.382,200.743c-1.1,0.177-2.067,0.317-2.941,0.776c0.992-2.479,1.692-4.806,1.076-6.435 c-1.505-3.985-4.399-3.272-5.514-6.177v-0.11c-0.008,0.022-0.02,0.034-0.028,0.055c-0.008-0.022-0.02-0.034-0.028-0.055v0.11 c-1.114,2.905-4.009,2.193-5.514,6.177c-0.616,1.63,0.084,3.955,1.076,6.435c-0.873-0.459-1.841-0.6-2.942-0.776 c-2.246-0.36-5.658,1.976-4.94,6.467s5.928,4.851,5.928,4.851c-0.718-0.718-1.347-1.886-0.988-3.144 c0.36-1.258,2.964-2.335,4.311,1.886c1.347,4.222-3.233,10.24-3.233,10.24c1.568-0.083,2.713-0.572,3.54-1.067 c-1.087,3.545,2.47,6.289,2.761,6.504v0.042l0.028-0.021c0.003,0.002,0.028,0.021,0.028,0.021v-0.042 c0.291-0.215,3.848-2.958,2.761-6.503c0.826,0.495,1.972,0.983,3.54,1.066c0,0-4.58-6.018-3.233-10.24s3.953-3.144,4.311-1.886 c0.36,1.258-0.269,2.425-0.988,3.144c0,0,5.209-0.36,5.928-4.851C269.041,202.719,265.628,200.383,263.382,200.743z"/>
|
||||
<path style="fill:#FFE15A;" d="M298.048,200.743c-1.1,0.177-2.067,0.317-2.941,0.776c0.992-2.479,1.692-4.806,1.076-6.435 c-1.505-3.985-4.399-3.272-5.514-6.177v-0.11c-0.008,0.022-0.02,0.034-0.028,0.055c-0.008-0.022-0.02-0.034-0.028-0.055v0.11 c-1.114,2.905-4.009,2.193-5.514,6.177c-0.616,1.63,0.084,3.955,1.076,6.435c-0.873-0.459-1.841-0.6-2.942-0.776 c-2.246-0.36-5.658,1.976-4.94,6.467s5.928,4.851,5.928,4.851c-0.718-0.718-1.347-1.886-0.988-3.144 c0.36-1.258,2.964-2.335,4.311,1.886s-3.233,10.24-3.233,10.24c1.568-0.083,2.713-0.572,3.54-1.067 c-1.087,3.545,2.47,6.289,2.761,6.504v0.042l0.028-0.021c0.003,0.002,0.028,0.021,0.028,0.021v-0.042 c0.291-0.215,3.848-2.958,2.761-6.503c0.826,0.495,1.972,0.983,3.54,1.066c0,0-4.58-6.018-3.233-10.24s3.953-3.144,4.311-1.886 c0.36,1.258-0.269,2.425-0.988,3.144c0,0,5.209-0.36,5.928-4.851C303.706,202.719,300.294,200.383,298.048,200.743z"/>
|
||||
<path style="fill:#FFE15A;" d="M228.716,200.743c-1.1,0.177-2.067,0.317-2.941,0.776c0.992-2.479,1.692-4.806,1.076-6.435 c-1.505-3.985-4.399-3.272-5.514-6.177v-0.11c-0.008,0.022-0.02,0.034-0.028,0.055c-0.008-0.022-0.02-0.034-0.028-0.055v0.11 c-1.114,2.905-4.009,2.193-5.514,6.177c-0.616,1.63,0.084,3.955,1.076,6.435c-0.873-0.459-1.841-0.6-2.942-0.776 c-2.246-0.36-5.658,1.976-4.94,6.467s5.928,4.851,5.928,4.851c-0.718-0.718-1.347-1.886-0.988-3.144 c0.36-1.258,2.964-2.335,4.311,1.886s-3.233,10.24-3.233,10.24c1.568-0.083,2.713-0.572,3.54-1.067 c-1.087,3.545,2.47,6.289,2.761,6.504v0.042l0.028-0.021c0.003,0.002,0.028,0.021,0.028,0.021v-0.042 c0.291-0.215,3.848-2.958,2.761-6.503c0.826,0.495,1.972,0.983,3.54,1.066c0,0-4.58-6.018-3.233-10.24s3.953-3.144,4.311-1.886 c0.36,1.258-0.269,2.425-0.988,3.144c0,0,5.209-0.36,5.928-4.851C234.375,202.719,230.962,200.383,228.716,200.743z"/>
|
||||
<path style="fill:#FFE15A;" d="M267.032,297.809c0,0-2.519-0.395-2.72,2.143c0,0,0,0.29-0.012,0.693 c-0.311-0.147-0.65-0.244-1.017-0.244c-1.331,0-2.41,1.079-2.41,2.411c0,1.331,1.079,2.41,2.41,2.41 c0.106,0,0.196-0.047,0.298-0.061c-0.359,1.149-0.929,2.195-1.73,2.951h-3.218c-0.846-0.937-1.103-2.771-1.159-4.099 c0.052,0.003,0.092,0.04,0.145,0.04c1.092,0,1.977-0.886,1.977-1.977c0-1.079-0.866-1.949-1.94-1.97 c0.171-0.292,0.296-0.615,0.296-0.978c0-1.092-0.885-1.977-1.977-1.977s-1.977,0.886-1.977,1.977c0,0.363,0.125,0.685,0.296,0.978 c-1.074,0.022-1.94,0.892-1.94,1.97c0,1.092,0.886,1.977,1.977,1.977c0.053,0,0.093-0.035,0.145-0.04 c-0.054,1.329-0.312,3.162-1.159,4.099h-3.218c-0.801-0.756-1.372-1.803-1.73-2.951c0.103,0.013,0.192,0.061,0.298,0.061 c1.331,0,2.41-1.079,2.41-2.41s-1.079-2.411-2.41-2.411c-0.367,0-0.706,0.096-1.017,0.244c-0.012-0.403-0.012-0.693-0.012-0.693 c-0.201-2.538-2.72-2.143-2.72-2.143c1.566,4.78,1.154,10.304,1.154,10.304v4.86h19.778v-4.849l0.029-0.011 C265.879,308.113,265.466,302.589,267.032,297.809z"/>
|
||||
<path style="fill:#FFE15A;" d="M243.919,278.965c0,0-2.519-0.395-2.72,2.143c0,0,0,0.29-0.012,0.693 c-0.311-0.147-0.65-0.244-1.017-0.244c-1.331,0-2.41,1.079-2.41,2.41s1.079,2.411,2.41,2.411c0.106,0,0.196-0.047,0.298-0.061 c-0.359,1.149-0.929,2.195-1.73,2.951h-3.218c-0.846-0.937-1.103-2.771-1.159-4.099c0.052,0.004,0.092,0.04,0.145,0.04 c1.092,0,1.977-0.886,1.977-1.977c0-1.079-0.866-1.949-1.94-1.97c0.171-0.292,0.296-0.615,0.296-0.978 c0-1.092-0.885-1.977-1.977-1.977s-1.977,0.886-1.977,1.977c0,0.363,0.125,0.685,0.296,0.978c-1.074,0.022-1.94,0.892-1.94,1.97 c0,1.092,0.886,1.977,1.977,1.977c0.053,0,0.093-0.035,0.145-0.04c-0.054,1.329-0.312,3.162-1.159,4.099h-3.218 c-0.801-0.756-1.372-1.803-1.73-2.951c0.103,0.013,0.192,0.061,0.298,0.061c1.331,0,2.41-1.079,2.41-2.411 c0-1.331-1.079-2.41-2.41-2.41c-0.367,0-0.706,0.096-1.017,0.244c-0.012-0.403-0.012-0.693-0.012-0.693 c-0.201-2.538-2.72-2.143-2.72-2.143c1.566,4.78,1.154,10.304,1.154,10.304v4.86h19.778v-4.849l0.029-0.011 C242.765,289.268,242.354,283.744,243.919,278.965z"/>
|
||||
<path style="fill:#FFE15A;" d="M290.146,278.965c0,0-2.519-0.395-2.72,2.143c0,0,0,0.29-0.012,0.693 c-0.311-0.147-0.65-0.244-1.017-0.244c-1.331,0-2.411,1.079-2.411,2.41s1.079,2.411,2.411,2.411c0.106,0,0.196-0.047,0.298-0.061 c-0.359,1.149-0.929,2.195-1.73,2.951h-3.218c-0.846-0.937-1.103-2.771-1.159-4.099c0.052,0.004,0.092,0.04,0.145,0.04 c1.092,0,1.977-0.886,1.977-1.977c0-1.079-0.866-1.949-1.94-1.97c0.171-0.292,0.296-0.615,0.296-0.978 c0-1.092-0.885-1.977-1.977-1.977c-1.092,0-1.977,0.886-1.977,1.977c0,0.363,0.125,0.685,0.296,0.978 c-1.074,0.022-1.94,0.892-1.94,1.97c0,1.092,0.886,1.977,1.977,1.977c0.053,0,0.093-0.035,0.145-0.04 c-0.054,1.329-0.312,3.162-1.159,4.099h-3.218c-0.801-0.756-1.372-1.803-1.73-2.951c0.103,0.013,0.192,0.061,0.298,0.061 c1.331,0,2.41-1.079,2.41-2.411c0-1.331-1.079-2.41-2.41-2.41c-0.367,0-0.706,0.096-1.017,0.244 c-0.012-0.403-0.012-0.693-0.012-0.693c-0.201-2.538-2.72-2.143-2.72-2.143c1.566,4.78,1.154,10.304,1.154,10.304v4.86h19.778 v-4.849l0.029-0.011C288.992,289.268,288.58,283.744,290.146,278.965z"/>
|
||||
<path style="fill:#FFE15A;" d="M329.138,155.198c-2.711-1.077-5.441-2.091-8.185-3.043c-0.768,2.226-1.535,4.451-2.303,6.678 c-1.324-0.458-2.652-0.905-3.982-1.334c0.719-2.243,1.438-4.484,2.157-6.728c-2.76-0.891-5.535-1.719-8.322-2.484 c-0.621,2.272-1.241,4.543-1.862,6.815c-1.344-0.37-2.691-0.724-4.042-1.064c0.572-2.285,1.142-4.569,1.714-6.855 c-2.799-0.704-5.611-1.346-8.431-1.926c-0.942,4.615-1.886,9.23-2.829,13.845c1.747,0.36,3.49,0.744,5.229,1.154 c-0.359,1.528-0.717,3.057-1.076,4.586c-10.166-2.4-20.491-3.901-30.855-4.5c0.09-1.568,0.181-3.135,0.27-4.704 c1.772,0.103,3.544,0.232,5.313,0.385c0.406-4.693,0.812-9.386,1.217-14.08c-2.857-0.248-5.718-0.435-8.582-0.559 c-0.102,2.354-0.203,4.706-0.305,7.06c-1.38-0.06-2.762-0.105-4.143-0.135c0.051-2.355,0.102-4.711,0.152-7.064 c-2.865-0.062-5.73-0.062-8.595,0c0.051,2.355,0.102,4.71,0.152,7.064c-1.382,0.03-2.763,0.075-4.143,0.135 c-0.102-2.354-0.203-4.706-0.305-7.06c-2.863,0.124-5.724,0.31-8.582,0.559c0.406,4.693,0.812,9.387,1.217,14.08 c1.77-0.153,3.541-0.282,5.313-0.385c0.09,1.568,0.181,3.136,0.27,4.704c-10.365,0.6-20.689,2.1-30.855,4.5 c-0.359-1.528-0.717-3.057-1.076-4.586c1.739-0.412,3.481-0.796,5.229-1.154c-0.943-4.615-1.886-9.23-2.829-13.845 c-2.82,0.579-5.632,1.222-8.431,1.926c0.572,2.285,1.142,4.57,1.714,6.855c-1.351,0.34-2.698,0.694-4.042,1.064 c-0.62-2.272-1.241-4.544-1.862-6.815c-2.787,0.767-5.562,1.594-8.322,2.484c0.719,2.243,1.438,4.484,2.157,6.728 c-1.331,0.429-2.658,0.875-3.982,1.334c-0.768-2.226-1.535-4.451-2.303-6.678c-2.745,0.953-5.474,1.967-8.185,3.043 c1.729,4.38,3.458,8.76,5.187,13.141c1.679-0.666,3.367-1.309,5.06-1.923c2.134,5.906,4.267,11.81,6.401,17.716 c4.564-1.66,9.183-3.111,13.842-4.354c1.554-0.414,3.111-0.808,4.672-1.175c9.37-2.211,18.887-3.595,28.439-4.148 c6.368-0.369,12.753-0.367,19.121,0c9.553,0.552,19.069,1.935,28.439,4.148c1.561,0.37,3.119,0.76,4.672,1.175 c4.66,1.245,9.278,2.696,13.842,4.354c2.134-5.907,4.267-11.81,6.401-17.716c1.694,0.616,3.381,1.257,5.06,1.923 C325.679,163.958,327.409,159.577,329.138,155.198z"/>
|
||||
</g>
|
||||
<path style="fill:#FFE1CD;" d="M255.976,379.592c28.104,0,54.123-9.024,75.377-24.286v-30.834 c-19.23,19.47-45.913,31.563-75.377,31.563c-29.871,0-56.876-12.439-76.161-32.387v31.097 C201.208,370.353,227.527,379.592,255.976,379.592z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 14 KiB |
@ -1,95 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FF4B55;" d="M473.655,423.724H38.346c-21.177,0-38.345-17.167-38.345-38.345V126.622 c0-21.177,17.167-38.345,38.345-38.345h435.309c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<path style="fill:#41479B;" d="M0.001,126.622v120.582c0.017,4.861,3.961,8.797,8.826,8.797h238.344 c4.875,0,8.828-3.953,8.828-8.828V97.104c0-4.874-3.95-8.825-8.823-8.828H38.346C17.169,88.277,0.001,105.444,0.001,126.622z"/>
|
||||
<path style="fill:#F5F5F5;" d="M150.069,141.849V88.277h-44.138v53.573L26.845,90.035c-9.234,2.9-16.954,9.203-21.711,17.434 l65.022,42.601H0.001v44.138h70.153L0.001,240.169v7.033c0.017,4.861,3.961,8.797,8.826,8.797H24.16l81.77-53.572V256h44.138 v-53.573L231.838,256h15.333c4.875,0,8.828-3.953,8.828-8.828v-7.002l-70.155-45.963h70.155V150.07h-70.155l70.155-45.964v-7.002 c0-4.874-3.95-8.825-8.823-8.828h-15.338L150.069,141.849z"/>
|
||||
<g>
|
||||
<polygon style="fill:#FF4B55;" points="255.999,158.897 141.241,158.897 141.241,88.277 114.758,88.277 114.758,158.897 0,158.897 0,185.38 114.758,185.38 114.758,256.001 141.241,256.001 141.241,185.38 255.999,185.38 "/>
|
||||
<path style="fill:#FF4B55;" d="M8.228,102.903l72.661,47.166h16.214l-82.495-53.55C12.239,98.39,10.098,100.533,8.228,102.903z"/>
|
||||
<path style="fill:#FF4B55;" d="M166.283,150.07l88.374-57.366c-1.536-2.599-4.246-4.427-7.485-4.427h-1.909l-95.194,61.793H166.283 z"/>
|
||||
<path style="fill:#FF4B55;" d="M89.474,194.208L1.269,251.462c1.519,2.663,4.273,4.537,7.559,4.537h1.665l95.195-61.793H89.474 V194.208z"/>
|
||||
<path style="fill:#FF4B55;" d="M255.859,247.866l-82.666-53.658H156.98l93.873,60.934 C253.666,253.837,255.594,251.102,255.859,247.866z"/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M320.945,174.03c-1.741,0-3.153,1.411-3.153,3.153v116.65c0,9.458,6.305,40.985,66.207,50.443 c59.902-9.458,66.207-40.985,66.207-50.443v-116.65c0-1.741-1.411-3.153-3.153-3.153L320.945,174.03L320.945,174.03z"/>
|
||||
<path style="fill:#73AF00;" d="M383.999,344.276c50.004-7.895,62.651-31.16,65.469-44.138H318.531 C321.348,313.115,333.995,336.38,383.999,344.276z"/>
|
||||
<path style="fill:#82AFFF;" d="M424.984,240.237c0,0,3.153-3.153,0-9.458l-40.985-1.834l-40.985,1.834c-3.153,6.305,0,9.458,0,9.458 c-3.153,3.153-3.153,6.305-3.153,6.305h6.305l6.831,11.297l31.001,17.078L415,257.84l6.831-11.297h6.305 C428.137,246.542,428.137,243.389,424.984,240.237z"/>
|
||||
<path style="fill:#F5F5F5;" d="M415.002,257.839c0,0-1.971-4.335-7.225-3.809c0,0-2.89-3.809-7.751-2.759 c0,0-5.649-3.284-8.932,2.759c0,0-10.444-1.062-11.002,6.891c0,0,16.256,24.504,16.651,24.767 c0.394,0.263,19.442,0.131,19.442,0.131l8.802-9.711l-8.671-12.489L415.002,257.839z"/>
|
||||
<path style="fill:#F0C850;" d="M384.394,265.589c0,0-13.79-22.528-15.764-24.434c-1.905-1.839-5.649-3.546-9.459-0.394 c0,0-11.428-0.919-9.853,7.751l3.284,13.137c0,0-2.89,9.064-4.204,9.984c-1.313,0.919-6.174,3.415-6.174,3.415l2.759,10.903 l36.781-1.839L384.394,265.589z"/>
|
||||
<path style="fill:#965032;" d="M400.288,255.738l-0.043,0.019l-1.017-2.401c-0.082-0.194-0.238-0.348-0.434-0.425 s-0.413-0.074-0.609,0.012l-6.842,3.017l-8.138-13.322c0.361-0.31,0.518-0.817,0.348-1.289c-0.22-0.616-0.897-0.936-1.512-0.717 l-1.814,0.649L379,237.655c-0.14-0.413-0.585-0.628-0.999-0.495c-0.413,0.141-0.634,0.588-0.494,1.001l1.236,3.654l-1.939,0.694 c-0.615,0.222-0.935,0.899-0.714,1.512c0.172,0.483,0.628,0.786,1.113,0.786c0.068,0,0.138-0.023,0.207-0.035l2.682,16.153 l-1.73,0.762c-0.377,0.167-0.564,0.597-0.424,0.985l0.981,2.732c0.024,0.46,0.022,1.236-0.135,2.218l-11.006-18.879 c0.462-0.289,0.693-0.851,0.502-1.383c-0.222-0.616-0.893-0.939-1.512-0.717l-1.814,0.649l-1.227-3.626 c-0.139-0.413-0.587-0.634-0.999-0.495c-0.413,0.141-0.634,0.588-0.494,1.001l1.236,3.654l-1.939,0.694 c-0.615,0.222-0.935,0.899-0.714,1.512c0.158,0.441,0.559,0.701,0.995,0.748l4.777,29.814c-0.617,0.259-1.222,0.522-1.901,0.764 c0,0-2.233,10.641-0.525,11.166c1.708,0.525,19.31,5.911,19.31,5.911s24.302-11.56,24.828-11.822 c0.525-0.263,1.577-7.882,1.577-7.882L400.288,255.738z M398.797,256.378l-2.035,0.874l-0.674-1.663l1.999-0.882L398.797,256.378z M386.497,259.818l1.673-0.737l0.643,1.585l-1.771,0.761L386.497,259.818z M385.588,262.05l-1.978,0.85l-0.622-1.534l2.062-0.909 L385.588,262.05z M390.26,260.045l-0.649-1.6l1.788-0.788l0.655,1.618L390.26,260.045z M392.84,257.021l1.806-0.797l0.669,1.649 l-1.814,0.779L392.84,257.021z M381.736,243.255l8.152,13.346l-3.897,1.718l-5.005-14.796L381.736,243.255z M378.922,244.262 l0.578-0.207l5.042,14.904l-2.963,1.306L378.922,244.262z M381.546,262.001l0.617,1.521l-1.945,0.835l-0.548-1.528L381.546,262.001z M366.295,249.325l11.938,20.479c-0.601,1.737-1.735,3.753-3.723,5.732l-8.797-26.004L366.295,249.325z M363.348,250.38l0.882-0.316 l9.009,26.632c-1.366,1.133-3.065,2.228-5.156,3.231L363.348,250.38z"/>
|
||||
<path style="fill:#FF4B55;" d="M427.842,226c-0.837-1.33-3.524-0.76-3.524-0.76s-0.767-1.534-2.794-1.682 c-2.027-0.148-2.399,1.657-2.399,1.657s-0.38-0.282-2.613-0.216s-1.773,3.744-1.773,3.744s-0.854,0-3.744-0.919 c-2.89-0.92-4.794-0.263-4.794-0.263c-0.131-1.511-0.919-2.627-0.919-2.627c-2.43,0.985-4.335-0.131-4.794-0.985 c-0.46-0.854,0.723-2.167,0.723-3.284s-1.544-1.067-2.086-2.052s0-1.527,1.429-2.167s2.759-3.005,1.871-4.926 s-3.448-1.577-3.448-1.577c0.887,0.148,1.625,1.823,0.198,2.167s-2.709-4.877-2.709-4.877c3.3,2.217,5.715,0.887,6.404-1.035 c0.69-1.922-1.133-3.251-1.133-3.251c-1.429,2.315-3.892,0.296-2.561-1.182c1.33-1.478,1.444-3.957,1.444-3.957 c-2.956,1.446-4.794-0.394-4.794-0.394c3.875-2.692,2.759-6.503,2.759-6.503c-1.444-0.657-4.532-0.131-4.532-0.131 c0.657-1.314,0.525-3.679,0.525-3.679c-1.642-0.263-3.481,0.788-3.481,0.788c0.525-1.838-0.198-5.057-0.198-5.057 c-1.182,0.198-3.415,0.854-3.415,0.854c-0.919-2.102-3.481-3.35-3.481-3.35s-2.561,1.248-3.481,3.35c0,0-2.233-0.657-3.415-0.854 c0,0-0.723,3.219-0.198,5.057c0,0-1.839-1.05-3.481-0.788c0,0-0.131,2.365,0.525,3.679c0,0-3.087-0.525-4.532,0.131 c0,0-1.117,3.809,2.759,6.503c0,0-1.839,1.839-4.794,0.394c0,0,0.115,2.479,1.444,3.957c1.33,1.478-1.133,3.498-2.561,1.182 c0,0-1.823,1.33-1.133,3.251s3.104,3.251,6.404,1.035c0,0-1.281,5.221-2.709,4.877s-0.69-2.019,0.198-2.167 c0,0-2.561-0.345-3.448,1.577c-0.887,1.921,0.444,4.286,1.871,4.926c1.429,0.64,1.971,1.182,1.429,2.167 c-0.542,0.985-2.086,0.936-2.086,2.052s1.182,2.43,0.723,3.284c-0.46,0.854-2.365,1.971-4.794,0.985c0,0-0.788,1.117-0.919,2.627 c0,0-1.905-0.657-4.794,0.263c-2.89,0.919-3.744,0.919-3.744,0.919s0.46-3.678-1.773-3.744s-2.613,0.216-2.613,0.216 s-0.371-1.805-2.399-1.657c-2.027,0.149-2.794,1.682-2.794,1.682s-2.687-0.569-3.524,0.76c-0.837,1.33-0.936,3.35,0.64,4.188 c1.577,0.838,5.763,4.335,5.763,4.335l5.911,2.561l20.69-9.163l10.837,2.857l10.837-2.857l20.69,9.163l5.911-2.561 c0,0,4.188-3.498,5.763-4.335C428.778,229.35,428.68,227.331,427.842,226z"/>
|
||||
<path style="fill:#F5F5F5;" d="M377.546,192.612c0,0,0.223,2.782,4.34,2.04C381.885,194.652,381.775,191.759,377.546,192.612z"/>
|
||||
<path style="fill:#FF4B55;" d="M362.313,302.503c0,0-2.956-0.098-6.009,2.167c-3.054,2.266-4.401,0.657-7.455,0.657 s-3.777,3.186-3.777,3.186s-5.911,1.478-3.546,5.813c1.495,2.742,3.576,2.684,4.908,2.272c-0.067,1.842,0.352,3.866,2.481,4.231 c4.04,0.69,5.813-1.478,4.926-4.828c0,0,0.492,3.448,3.153,3.35c2.66-0.098,4.434-1.577,4.138-5.123s4.434-1.379,8.078-6.601 L362.313,302.503z"/>
|
||||
<g>
|
||||
<path style="fill:#82AFFF;" d="M345.039,315.179c0,0-1.839,2.43-1.313,4.794c0,0-3.94-1.248-1.839-7.094 C341.886,312.88,344.58,312.158,345.039,315.179z"/>
|
||||
<path style="fill:#82AFFF;" d="M351.229,318.365c0,0-1.084,3.054,0.394,5.763c0,0-4.926-0.148-3.94-6.207 C347.683,317.922,349.259,316.296,351.229,318.365z"/>
|
||||
<path style="fill:#82AFFF;" d="M356.156,318.069c0,0,0.887,2.561,0,5.025c0,0,4.04-0.246,3.35-6.059 C359.505,317.034,357.338,316.246,356.156,318.069z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M352.56,259.153c-0.373-3.038-19.409-4.828-18.227,11.166c0,0-2.112-0.039-3.15,1.928 s-3.264,1.484-3.932,0.779c0,0,0.148,3.561,4.562,3.412c0,0-1.397,1.1-1.199,2.708s1.359,3.635,1.286,5.02 s-1.385,3.314-1.385,3.314s3.388-1.162,3.61-3.585s-0.321-4.451,0.346-5.687c0,0-0.321,1.706,1.187,3.858 c1.508,2.152,1.582,4.772,0.964,6.404c0,0,3.758-1.855,3.041-5.44s-1.484-3.264-1.138-5.267c0,0,3.907,3.981,3.24,7.369 c0,0,1.249-1.496,1.138-4.314s-2.068-4.715-2.068-4.715S353.84,269.596,352.56,259.153z"/>
|
||||
<path style="fill:#FF4B55;" d="M405.686,302.503c0,0,2.956-0.098,6.009,2.167c3.054,2.266,4.401,0.657,7.455,0.657 s3.777,3.186,3.777,3.186s5.911,1.478,3.546,5.813c-1.495,2.742-3.576,2.684-4.908,2.272c0.067,1.842-0.352,3.866-2.481,4.231 c-4.04,0.69-5.813-1.478-4.926-4.828c0,0-0.492,3.448-3.153,3.35c-2.66-0.098-4.434-1.577-4.138-5.123s-4.434-1.379-8.078-6.601 L405.686,302.503z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#82AFFF;" d="M422.961,315.179c0,0,1.839,2.43,1.313,4.794c0,0,3.94-1.248,1.839-7.094 C426.113,312.88,423.42,312.158,422.961,315.179z"/>
|
||||
<path style="fill:#82AFFF;" d="M416.769,318.365c0,0,1.084,3.054-0.394,5.763c0,0,4.926-0.148,3.94-6.207 C420.317,317.922,418.74,316.296,416.769,318.365z"/>
|
||||
<path style="fill:#82AFFF;" d="M411.844,318.069c0,0-0.887,2.561,0,5.025c0,0-4.04-0.246-3.35-6.059 C408.493,317.034,410.662,316.246,411.844,318.069z"/>
|
||||
</g>
|
||||
<path style="fill:#FF4B55;" d="M415.44,259.153c0.373-3.038,19.409-4.828,18.227,11.166c0,0,2.112-0.039,3.15,1.928 s3.264,1.484,3.932,0.779c0,0-0.148,3.561-4.562,3.412c0,0,1.397,1.1,1.199,2.708s-1.361,3.635-1.286,5.02 c0.074,1.385,1.385,3.314,1.385,3.314s-3.388-1.162-3.61-3.585s0.321-4.451-0.346-5.687c0,0,0.321,1.706-1.187,3.858 c-1.508,2.152-1.582,4.772-0.964,6.404c0,0-3.758-1.855-3.041-5.44s1.484-3.264,1.138-5.267c0,0-3.907,3.981-3.24,7.369 c0,0-1.249-1.496-1.138-4.314c0.111-2.819,2.068-4.715,2.068-4.715S414.159,269.596,415.44,259.153z"/>
|
||||
<path style="fill:#FFE15A;" d="M423.227,231.894c-0.724-0.487-1.703-0.284-2.185,0.447c-0.997,1.505-2.311,2.386-4.014,2.691 c-5.641,0.979-13.773-4.575-16.135-6.312c-3.423-2.516-7.651-2.953-10.458-1.224c-1.12,0.371-4.544,1.45-6.434,1.45 c-1.89,0-5.314-1.08-6.434-1.45c-2.807-1.729-7.036-1.292-10.458,1.224c-2.361,1.737-10.494,7.29-16.135,6.312 c-1.704-0.305-3.017-1.185-4.014-2.691c-0.482-0.729-1.461-0.932-2.185-0.447c-0.726,0.48-0.925,1.46-0.445,2.183 c1.478,2.236,3.527,3.599,6.091,4.057c0.648,0.117,1.31,0.169,1.984,0.169c6.016,0,12.823-4.292,16.568-7.041 c2.785-2.045,5.907-2.041,7.313-0.856c0.355,0.301,0.759,0.776,0.662,1.333c-0.052,0.305-0.253,0.579-0.587,0.81 c0.081-0.483-0.066-0.998-0.439-1.373c-0.616-0.616-1.613-0.616-2.229,0c-0.802,0.798-0.889,2.093-0.214,3.147 c0.679,1.056,2.142,1.828,3.88,1.185c0.883-0.329,1.589-0.958,2.078-1.728c2.396-0.697,4.565-0.702,4.565-0.702 s2.169,0.004,4.565,0.702c0.489,0.77,1.195,1.399,2.078,1.728c1.738,0.643,3.2-0.129,3.88-1.185 c0.675-1.053,0.588-2.349-0.214-3.147c-0.616-0.616-1.613-0.616-2.229,0c-0.373,0.375-0.519,0.889-0.439,1.373 c-0.334-0.231-0.534-0.505-0.587-0.81c-0.097-0.557,0.307-1.032,0.662-1.333c1.406-1.185,4.527-1.188,7.313,0.856 c3.745,2.75,10.552,7.041,16.568,7.041c0.674,0,1.336-0.052,1.984-0.169c2.564-0.459,4.613-1.823,6.091-4.057 C424.152,233.352,423.954,232.374,423.227,231.894z"/>
|
||||
<g>
|
||||
<path style="fill:#82AFFF;" d="M343.83,233.635c0,0-0.259-3.523-0.371-4.673s-2.262-2.003-3.079-0.853 C339.564,229.257,339.343,231.372,343.83,233.635z"/>
|
||||
<path style="fill:#82AFFF;" d="M344.591,232.503c0,0,3.104-2.513,2.709-3.842c-0.394-1.33-1.231-2.019-2.266-1.625 C343.998,227.429,343.507,229.842,344.591,232.503z"/>
|
||||
<path style="fill:#82AFFF;" d="M350.65,230.532c0.446-0.446,0.591-2.611-0.64-2.857c-1.231-0.246-2.857,1.675-2.759,4.04 C347.251,231.715,349.812,231.369,350.65,230.532z"/>
|
||||
<path style="fill:#82AFFF;" d="M349.369,231.763c-1.429,0.457-2.808,1.675-2.808,1.675s2.561,1.871,4.335,1.281 C352.67,234.128,351.833,230.976,349.369,231.763z"/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M390.453,192.612c0,0-0.223,2.782-4.34,2.04C386.113,194.652,386.225,191.759,390.453,192.612z"/>
|
||||
<g>
|
||||
<path style="fill:#82AFFF;" d="M424.169,233.635c0,0,0.259-3.523,0.371-4.673c0.111-1.15,2.262-2.003,3.079-0.853 C428.435,229.259,428.657,231.372,424.169,233.635z"/>
|
||||
<path style="fill:#82AFFF;" d="M423.409,232.503c0,0-3.104-2.513-2.709-3.842c0.394-1.33,1.231-2.019,2.266-1.625 C424.001,227.429,424.492,229.842,423.409,232.503z"/>
|
||||
<path style="fill:#82AFFF;" d="M417.35,230.532c-0.446-0.446-0.591-2.611,0.64-2.857c1.231-0.246,2.857,1.675,2.759,4.04 C420.748,231.715,418.187,231.369,417.35,230.532z"/>
|
||||
<path style="fill:#82AFFF;" d="M418.63,231.763c1.429,0.457,2.808,1.675,2.808,1.675s-2.561,1.871-4.335,1.281 C415.329,234.128,416.167,230.976,418.63,231.763z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#464655;" d="M382.369,199.169l1.25,1.25c0.21,0.21,0.551,0.21,0.76,0l1.25-1.25 c0.339-0.339,0.099-0.918-0.381-0.918h-2.5C382.27,198.251,382.031,198.83,382.369,199.169z"/>
|
||||
<path style="fill:#464655;" d="M381.715,204.294c-0.927,0-1.729-0.332-2.274-0.946c-0.564-0.638-0.803-1.515-0.661-2.408 c0.051-0.299,0.351-0.48,0.632-0.456c0.301,0.05,0.505,0.332,0.457,0.634c-0.09,0.564,0.054,1.108,0.397,1.496 c0.354,0.397,0.895,0.581,1.559,0.573c1.386-0.055,1.618-1.41,1.628-1.465l-0.007-2.473c0-0.305,0.246-0.551,0.551-0.551 s0.551,0.246,0.551,0.551v2.559c-0.134,0.884-0.856,2.408-2.68,2.482C381.819,204.294,381.766,204.294,381.715,204.294z"/>
|
||||
<path style="fill:#464655;" d="M386.284,204.294c-0.051,0-0.103,0-0.156-0.003c-1.824-0.074-2.546-1.598-2.674-2.396l-0.007-2.645 c0-0.305,0.246-0.551,0.551-0.551s0.551,0.246,0.551,0.551v2.559c0.019,0.055,0.277,1.327,1.621,1.379 c0.683,0.012,1.204-0.169,1.559-0.573c0.343-0.388,0.488-0.932,0.397-1.496c-0.047-0.301,0.156-0.585,0.457-0.634 c0.288-0.036,0.584,0.154,0.632,0.456c0.143,0.893-0.097,1.77-0.66,2.408C388.012,203.962,387.211,204.294,386.284,204.294z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M402.916,284.375c0,0-3.94-6.305-8.538-2.102c-4.598,4.204-6.305,9.327-11.56,8.932 c-2.883-0.216-4.356-1.533-5.121-2.684c1.396-1.149,2.386-2.894,1.312-5.461c-2.365-5.649-11.034-3.94-13.399,2.233 c0,0,2.759-9.064-6.831-6.042c0,0-1.182-6.305-6.699-4.598c-3,0.929-4.11,2.775-4.522,4.279c-1.161-0.27-2.652-0.262-4.017,0.843 l6.962,18.785l10.509,0.131l2.365,3.546l13.793,8.67l2.496,5.255h8.67c0,0,0.657-5.386,5.255-6.962 c4.598-1.577,12.085-4.861,12.874-7.751c0.788-2.89,0.788-2.89,0.788-2.89l8.407,0.131c0.919-0.657,7.094-10.772,7.094-10.772 l2.866-13.027C424.037,274.665,405.931,272.315,402.916,284.375z"/>
|
||||
<path style="fill:#F5F5F5;" d="M425.641,274.785l-0.024,0.109c0.073,0.01,0.156,0.023,0.156,0.023L425.641,274.785z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M368.424,304.516c-3.406-1.373-4.622-3.297-5.043-4.322c-0.391-0.948-0.314-1.62-0.207-1.866 c0.217-0.502,0.48-0.822,0.725-0.884c0.231-0.055,0.523,0.077,0.576,0.11c0.11,0.126,0.169,0.526,0.063,0.625 c-0.634,0.597-0.663,1.594-0.067,2.229c0.599,0.634,1.593,0.662,2.229,0.067c0.648-0.609,1.02-1.462,1.045-2.401 c0.03-1.006-0.339-2.01-0.982-2.688c-0.646-0.683-1.971-1.305-3.383-1.053c-0.291,0.051-0.619,0.17-0.954,0.332 c0.221-2.184-0.621-3.302-1.239-3.753c-1.039-0.755-2.518-0.772-3.763-0.043c-1.273,0.748-1.961,2.057-1.793,3.411 c0.108,0.865,0.975,1.383,1.821,1.266c0.864-0.105,1.543-0.997,1.437-1.859c0.179-0.163,0.414-0.218,0.406-0.256 c0.003,0.003,0.211,0.348-0.04,1.46c-0.393,1.742-1.314,2.814-2.74,3.19c-1.775,0.49-4.049-0.258-5.393-1.734 c-1.869-2.057-5.781-12.971-8.107-20.241c9.971-4.729,11.196-12.586,11.007-16.964c-0.288-6.669-4.278-13.492-8.715-14.899 c-1.746-0.551-4.361-0.665-6.259,0.314c-1.075,0.561-1.821,1.419-2.157,2.487c-0.685,2.179,0.686,3.981,2.326,4.569 c1.698,0.609,3.412-0.124,4.071-1.746c0.327-0.807-0.03-1.73-0.836-2.057c-0.811-0.335-1.694,0.058-2.019,0.862 c-0.066,0.036-0.285-0.046-0.448-0.231c-0.118-0.136-0.143-0.268-0.085-0.449c0.052-0.167,0.171-0.413,0.605-0.638 c1.03-0.538,2.752-0.456,3.852-0.108c2.539,0.803,6.246,5.77,6.516,12.029c0.161,3.741-0.974,10.598-10.388,14.505 c-0.755,0.314-1.144,1.149-0.9,1.928c0.615,1.967,6.098,19.341,9.204,22.755c1.671,1.838,4.196,2.906,6.611,2.906 c0.654,0,1.301-0.077,1.92-0.241c1.053-0.279,1.932-0.822,2.697-1.504c0.076,0.578,0.21,1.17,0.454,1.762 c0.609,1.484,2.3,4.243,7.02,6.145c9.547,3.83,10.454,6.391,10.402,7.318c-0.029,0.508-0.32,0.772-0.557,0.905 c-0.103,0.058-0.205,0.095-0.292,0.117c0.352-0.483,0.416-1.145,0.105-1.703c-0.425-0.76-1.383-1.032-2.144-0.607 c-1.073,0.6-1.821,2.014-1.18,3.559c0.5,1.201,1.671,1.928,3.023,1.928c0.217,0,0.439-0.019,0.663-0.059 c1.963-0.332,3.413-1.961,3.529-3.959C381.31,310.253,374.103,306.794,368.424,304.516z"/>
|
||||
<path style="fill:#FFE15A;" d="M399.575,304.516c3.406-1.373,4.622-3.297,5.043-4.322c0.391-0.948,0.314-1.62,0.207-1.866 c-0.217-0.502-0.48-0.822-0.725-0.884c-0.231-0.055-0.523,0.077-0.576,0.11c-0.11,0.126-0.169,0.526-0.063,0.625 c0.635,0.597,0.663,1.594,0.067,2.229c-0.599,0.634-1.593,0.662-2.229,0.067c-0.648-0.609-1.02-1.462-1.045-2.401 c-0.029-1.006,0.339-2.01,0.982-2.688c0.646-0.683,1.971-1.305,3.383-1.053c0.291,0.051,0.619,0.17,0.954,0.332 c-0.221-2.184,0.621-3.302,1.239-3.753c1.039-0.755,2.518-0.772,3.763-0.043c1.273,0.748,1.961,2.057,1.793,3.411 c-0.108,0.865-0.975,1.383-1.821,1.266c-0.864-0.105-1.543-0.997-1.437-1.859c-0.179-0.163-0.414-0.218-0.406-0.256 c-0.003,0.003-0.211,0.348,0.04,1.46c0.393,1.742,1.314,2.814,2.74,3.19c1.775,0.49,4.049-0.258,5.393-1.734 c1.869-2.057,5.781-12.971,8.107-20.241c-9.971-4.729-11.196-12.586-11.007-16.964c0.288-6.669,4.278-13.492,8.715-14.899 c1.746-0.551,4.361-0.665,6.259,0.314c1.075,0.561,1.821,1.419,2.157,2.487c0.685,2.179-0.686,3.981-2.326,4.569 c-1.698,0.609-3.412-0.124-4.071-1.746c-0.327-0.807,0.03-1.73,0.836-2.057c0.811-0.335,1.694,0.058,2.019,0.862 c0.066,0.036,0.285-0.046,0.448-0.231c0.118-0.136,0.143-0.268,0.085-0.449c-0.052-0.167-0.171-0.413-0.605-0.638 c-1.03-0.538-2.752-0.456-3.852-0.108c-2.539,0.803-6.246,5.77-6.516,12.029c-0.161,3.741,0.974,10.598,10.388,14.505 c0.755,0.314,1.144,1.149,0.9,1.928c-0.615,1.967-6.098,19.341-9.204,22.755c-1.671,1.838-4.196,2.906-6.611,2.906 c-0.654,0-1.301-0.077-1.92-0.241c-1.053-0.279-1.932-0.822-2.697-1.504c-0.076,0.578-0.21,1.17-0.454,1.762 c-0.609,1.484-2.3,4.243-7.02,6.145c-9.547,3.83-10.454,6.391-10.402,7.318c0.03,0.508,0.32,0.772,0.557,0.905 c0.103,0.058,0.205,0.095,0.292,0.117c-0.352-0.483-0.416-1.145-0.105-1.703c0.425-0.76,1.383-1.032,2.144-0.607 c1.073,0.6,1.821,2.014,1.18,3.559c-0.5,1.201-1.671,1.928-3.023,1.928c-0.217,0-0.439-0.019-0.663-0.059 c-1.963-0.332-3.413-1.961-3.529-3.959C386.688,310.253,393.896,306.794,399.575,304.516z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 18 KiB |
@ -1,47 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#FFE15A;" d="M473.655,423.724H38.345C17.167,423.724,0,406.557,0,385.379V126.621 c0-21.177,17.167-38.345,38.345-38.345h435.31c21.177,0,38.345,17.167,38.345,38.345V385.38 C512,406.557,494.833,423.724,473.655,423.724z"/>
|
||||
<path style="fill:#F5F5F5;" d="M512,300.138L16.509,95.106C6.536,102.03,0,113.559,0,126.621v23.448l512,211.862V300.138z"/>
|
||||
<path style="fill:#464655;" d="M512,385.379v-23.448L0,150.069v61.793l495.491,205.031C505.465,409.969,512,398.44,512,385.379z"/>
|
||||
<g>
|
||||
<path style="fill:#FF4B55;" d="M305.589,240.326l0.007-0.25c0,0-0.117-1.209-0.338-3.478c-0.067-1.134-0.328-2.515-0.672-4.125 c-0.266-1.623-0.78-3.439-1.44-5.443c-1.326-3.977-3.367-8.725-6.891-13.322c-0.426-0.568-0.93-1.129-1.394-1.694 c1.999-2.292,3.949-4.958,5.788-8.175c0,0-10.08,0.462-21.401-4.478c-3.737-1.946-7.796-3.543-12.248-4.589l-2.112-8.447 c-0.452-1.806-2.076-3.074-3.937-3.074h-2.92v-4.058h14.206l-4.058-8.118l4.058-8.118H258.03v-4.059h-4.06v24.353h-2.92 c-1.863,0-3.486,1.268-3.937,3.074l-2.066,8.265c-2.742,0.584-5.473,1.325-8.124,2.452c-2.169,0.868-4.267,1.956-6.315,3.174 c-10.413,3.997-19.257,3.624-19.257,3.624c1.838,3.215,3.785,5.88,5.783,8.171c-0.405,0.492-0.854,0.934-1.246,1.44 c-2.765,3.755-4.973,7.977-6.658,12.46c-1.603,4.353-2.514,9.878-2.819,13.917l-0.008,3.905c-0.041,1.226,0.099,2.441,0.228,3.66 c0.16,2.457,0.703,4.855,1.215,7.271c1.266,4.758,3.118,9.387,5.643,13.638c5.054,8.513,12.762,15.224,21.405,19.385 c4.465,1.967,8.683,3.466,13.716,4.181c2.681,0.499,4.351,0.491,6.337,0.664l0.361,0.026l0.181,0.013l0.589,0.015l0.845-0.035 l1.684-0.076c1.118-0.075,2.236-0.061,3.331-0.224c8.832-0.969,16.793-4.403,23.009-8.862c6.215-4.539,10.679-10.073,13.737-15.349 c3.106-5.281,4.708-10.391,5.696-14.577c0.472-2.09,0.823-4,0.951-5.796c0.201-1.778,0.318-3.234,0.265-4.185 C305.592,241.422,305.589,240.326,305.589,240.326z M231.82,268.931c-2.82-2.198-5.369-4.818-7.693-7.708 c-2.237-2.959-4.024-6.297-5.427-9.846c-1.323-3.473-2.051-7.648-2.409-11.051c-0.099-4.723,0.122-7.944,1.024-11.971 c0.983-3.825,2.417-7.569,4.412-11.023c0.116-0.2,0.273-0.37,0.392-0.567c9.227,7.208,18.969,6.695,25.763,3.197v7.938 c2.241,0,4.058,4.543,4.058,10.147s-1.817,10.147-4.058,10.147v4.058c7.613,10.15,4.12,18.713-0.558,23.706 c-2.123-0.461-4.326-1.081-6.386-1.892C237.743,272.824,234.709,271.033,231.82,268.931z M295.703,239.87 c-0.007,0.06-0.115,1.103-0.321,3.092c-0.062,1.109-0.307,2.159-0.59,3.322c-0.202,1.173-0.631,2.593-1.182,4.203 c-1.099,3.154-2.752,6.92-5.626,10.528c-2.809,3.619-6.598,7.193-11.325,9.99c-3.594,2.133-7.818,3.576-12.281,4.601 c-4.52-5.037-7.703-13.428-0.258-23.353v-4.058c-2.241,0-4.059-4.543-4.059-10.147s1.817-10.147,4.059-10.147v-7.938 c6.802,3.502,16.559,4.013,25.796-3.221c0.158,0.266,0.351,0.536,0.5,0.8c2.456,4.292,3.67,8.42,4.431,11.782 c0.363,1.697,0.63,3.211,0.693,4.556c0.14,1.331,0.242,2.457,0.184,3.384C295.711,238.835,295.704,239.633,295.703,239.87z"/>
|
||||
<path style="fill:#FF4B55;" d="M256,300.959c-14.987,0-28.582-5.838-38.727-15.326c-1.863-1.741-4.81-1.53-6.47,0.406 l-15.542,18.133c-1.652,1.928-0.282,4.905,2.255,4.905h9.775l13.031,6.516c1.831,0.916,4.057,0.324,5.193-1.379l4.194-6.292 c8.106,3.345,16.977,5.214,26.29,5.214c9.313,0,18.184-1.869,26.29-5.214l4.194,6.292c1.135,1.704,3.361,2.294,5.193,1.379 l13.031-6.516h9.775c2.538,0,3.908-2.977,2.255-4.905l-15.542-18.133c-1.66-1.937-4.607-2.147-6.47-0.406 C284.582,295.122,270.988,300.959,256,300.959z"/>
|
||||
<path style="fill:#FF4B55;" d="M199.176,284.724H178.88l4.058-36.531c0,0-14.207-7.104-12.719-27.956 c0.181-2.536,2.325-4.516,4.867-4.516h3.464c2.392,0,4.397,1.734,4.793,4.093c0.854,5.091,3.511,13.448,11.772,16.202 L199.176,284.724z"/>
|
||||
<path style="fill:#FF4B55;" d="M312.825,284.724h20.295l-4.059-36.531c0,0,14.207-7.104,12.719-27.956 c-0.181-2.536-2.325-4.516-4.867-4.516h-3.464c-2.392,0-4.397,1.734-4.793,4.093c-0.854,5.091-3.511,13.448-11.772,16.202 L312.825,284.724z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path style="fill:#FFE15A;" d="M201.205,288.782h-24.353c-1.121,0-2.029-0.908-2.029-2.029l0,0c0-1.121,0.908-2.029,2.029-2.029 h24.353c1.121,0,2.029,0.908,2.029,2.029l0,0C203.234,287.874,202.325,288.782,201.205,288.782z"/>
|
||||
<path style="fill:#FFE15A;" d="M335.149,288.782h-24.353c-1.121,0-2.029-0.908-2.029-2.029l0,0c0-1.121,0.908-2.029,2.029-2.029 h24.353c1.121,0,2.029,0.908,2.029,2.029l0,0C337.178,287.874,336.27,288.782,335.149,288.782z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.8 KiB |
@ -1,101 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M38.345,423.724h435.31c21.177,0,38.345-17.167,38.345-38.345v-73.471H0v73.471 C0,406.557,17.167,423.724,38.345,423.724z"/>
|
||||
<path style="fill:#FF4B55;" d="M512,126.621c0-21.177-17.167-38.345-38.345-38.345H38.345C17.167,88.276,0,105.443,0,126.621v73.471 h512V126.621z"/>
|
||||
<rect y="200.09" style="fill:#FFE15A;" width="512" height="111.81"/>
|
||||
<path style="fill:#73AF00;" d="M244.598,205.956c0,0-0.227,0.284-0.653,0.817c-0.355,0.492-0.888,1.248-1.47,2.254 c-1.145,1.999-2.347,5.098-2.38,8.792c-0.012,1.801,0.36,3.988,0.974,5.727c0.666,1.92,1.771,3.756,3.168,5.396 c1.399,1.655,3.268,2.931,5.267,3.873c0.991,0.503,2.079,0.792,3.158,1.058c0.535,0.163,1.105,0.171,1.654,0.279 c0.276,0.052,0.562,0.029,0.841,0.051l0.422,0.019l0.211,0.011l0.105,0.006l0.053,0.003l0.026,0.001 c-0.085,0.003,0.227-0.004-0.184,0.007c0.684-0.04,1.514-0.045,2.078-0.114c0.492-0.115,0.906-0.095,1.47-0.262 c1.08-0.266,2.167-0.555,3.158-1.058c1.998-0.942,3.868-2.218,5.267-3.873c1.397-1.64,2.502-3.476,3.168-5.396 c0.638-1.953,0.979-3.822,0.974-5.736c-0.031-3.678-1.234-6.788-2.379-8.785c-0.578-1.002-1.113-1.763-1.494-2.276 c-0.396-0.505-0.607-0.776-0.607-0.776l-0.053-0.067c-0.381-0.486-0.295-1.187,0.191-1.568c0.384-0.3,0.904-0.309,1.291-0.061 c0,0,0.326,0.209,0.937,0.6c0.578,0.434,1.474,1.047,2.439,2.039c1.937,1.918,4.451,5.334,5.358,10.298 c0.449,2.376,0.498,5.25-0.121,8.075c-0.6,2.854-1.817,5.805-3.782,8.387c-1.93,2.594-4.523,4.888-7.606,6.435 c-1.521,0.811-3.176,1.4-4.874,1.81c-0.814,0.239-1.847,0.338-2.767,0.483c-0.862,0.095-1.475,0.097-2.226,0.15l-0.292,0.001 l-0.082-0.004l-0.164-0.008l-0.328-0.017l-0.657-0.035c-0.437-0.035-0.876-0.029-1.309-0.104c-0.863-0.152-1.741-0.223-2.583-0.466 c-1.698-0.409-3.354-0.999-4.874-1.81c-3.083-1.547-5.676-3.842-7.606-6.435c-1.964-2.583-3.181-5.534-3.782-8.387 c-0.642-3.04-0.562-5.596-0.12-8.084c0.905-4.949,3.421-8.377,5.357-10.291c0.961-0.988,1.86-1.607,2.463-2.061 c0.58-0.364,0.891-0.559,0.891-0.559c0.526-0.33,1.22-0.172,1.55,0.354C244.936,205.067,244.888,205.592,244.598,205.956z"/>
|
||||
<path style="fill:#FF4B55;" d="M253.782,293.866v13.971c0,1.394-1.685,2.092-2.67,1.107l-0.769-0.769 c-0.639-0.639-0.998-1.505-0.998-2.408v-11.901H253.782z"/>
|
||||
<path style="fill:#FFE15A;" d="M247.126,291.647v10.141c0,0.609,0.242,1.194,0.673,1.625l1.545,1.545v-13.311H247.126z"/>
|
||||
<path style="fill:#73AF00;" d="M244.908,291.647v5.442c0,0.777,0.309,1.522,0.857,2.071l1.361,1.361v-8.874H244.908L244.908,291.647 z"/>
|
||||
<path style="fill:#FF4B55;" d="M258.219,293.866v13.971c0,1.394,1.685,2.092,2.67,1.107l0.769-0.769 c0.639-0.639,0.998-1.505,0.998-2.408v-11.901H258.219z"/>
|
||||
<path style="fill:#FFE15A;" d="M264.874,291.647v10.141c0,0.609-0.242,1.194-0.673,1.625l-1.545,1.545v-13.311H264.874z"/>
|
||||
<path style="fill:#73AF00;" d="M267.093,291.647v5.442c0,0.777-0.309,1.522-0.857,2.071l-1.361,1.361v-8.874H267.093 L267.093,291.647z"/>
|
||||
<path style="fill:#FF4B55;" d="M267.093,251.715l24.403-17.748v36.498c0,10.474-8.491,18.964-18.964,18.964l0,0 c-3.554,0-7.037-0.999-10.051-2.882l-13.135-8.21v-26.93L267.093,251.715z"/>
|
||||
<path style="fill:#FFE15A;" d="M282.622,240.42v25.607c0,10.474-8.491,18.964-18.964,18.964c-1.575,0-3.127-0.227-4.64-0.61 l-9.673-6.046v-26.93l17.748,0.308L282.622,240.42z"/>
|
||||
<path style="fill:#73AF00;" d="M275.967,245.261v16.531c0,10.474-8.491,18.964-18.964,18.964c-1.575,0-3.128-0.227-4.64-0.61 l-3.018-1.886v-26.854l17.748,0.308L275.967,245.261z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="292.826,229.974 302.589,225.094 295.489,233.967 291.496,233.967 "/>
|
||||
<path style="fill:#FF4B55;" d="M280.404,262.807l24.403-17.748v36.498c0,10.474-8.491,18.964-18.964,18.964l0,0 c-3.554,0-7.037-0.999-10.051-2.882l-13.135-8.21v-26.93L280.404,262.807z"/>
|
||||
<path style="fill:#73AF00;" d="M289.278,256.353v16.531c0,10.474-8.491,18.964-18.964,18.964c-1.575,0-3.127-0.227-4.64-0.61 l-3.018-1.886V262.5l17.748,0.308L289.278,256.353z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="306.137,241.066 315.9,236.185 308.8,245.059 304.807,245.059 "/>
|
||||
<path style="fill:#FF4B55;" d="M273.748,258.37l24.403-17.748v36.498c0,10.474-8.491,18.964-18.964,18.964l0,0 c-3.554,0-7.037-0.999-10.051-2.882L256,284.992v-26.93L273.748,258.37z"/>
|
||||
<path style="fill:#FFE15A;" d="M289.278,247.076v25.607c0,10.474-8.491,18.964-18.964,18.964c-1.575,0-3.127-0.227-4.64-0.61 L256,284.992v-26.93l17.748,0.308L289.278,247.076z"/>
|
||||
<path style="fill:#73AF00;" d="M282.622,251.916v16.531c0,10.474-8.491,18.964-18.964,18.964c-1.575,0-3.127-0.227-4.64-0.61 L256,284.916v-26.854l17.748,0.308L282.622,251.916z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="299.482,236.629 309.244,231.748 302.144,240.622 298.152,240.622 "/>
|
||||
<path style="fill:#FF4B55;" d="M244.908,251.715l-24.403-17.748v36.498c0,10.474,8.491,18.964,18.964,18.964l0,0 c3.554,0,7.037-0.999,10.051-2.882l13.135-8.21v-26.93L244.908,251.715z"/>
|
||||
<path style="fill:#FFE15A;" d="M229.378,240.42v25.607c0,10.474,8.491,18.964,18.964,18.964c1.575,0,3.127-0.227,4.64-0.61 l9.673-6.046v-26.93l-17.748,0.308L229.378,240.42z"/>
|
||||
<path style="fill:#73AF00;" d="M236.034,245.261v16.531c0,10.474,8.491,18.964,18.964,18.964c1.575,0,3.128-0.227,4.64-0.61 l3.018-1.886v-26.854l-17.748,0.308L236.034,245.261z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="219.174,229.974 209.412,225.094 216.512,233.967 220.504,233.967 "/>
|
||||
<path style="fill:#FF4B55;" d="M231.597,262.807l-24.403-17.748v36.498c0,10.474,8.491,18.964,18.964,18.964l0,0 c3.554,0,7.037-0.999,10.051-2.882l13.135-8.21v-26.93L231.597,262.807z"/>
|
||||
<path style="fill:#73AF00;" d="M222.723,256.353v16.531c0,10.474,8.491,18.964,18.964,18.964c1.575,0,3.127-0.227,4.64-0.61 l3.018-1.886V262.5l-17.748,0.308L222.723,256.353z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="205.863,241.066 196.102,236.185 203.201,245.059 207.193,245.059 "/>
|
||||
<path style="fill:#FF4B55;" d="M238.252,258.37l-24.403-17.748v36.498c0,10.474,8.491,18.964,18.964,18.964l0,0 c3.554,0,7.037-0.999,10.051-2.882l13.135-8.21v-26.93L238.252,258.37z"/>
|
||||
<path style="fill:#FFE15A;" d="M222.723,247.076v25.607c0,10.474,8.491,18.964,18.964,18.964c1.575,0,3.127-0.227,4.64-0.61 l9.673-6.046v-26.93l-17.748,0.308L222.723,247.076z"/>
|
||||
<path style="fill:#73AF00;" d="M229.378,251.916v16.531c0,10.474,8.491,18.964,18.964,18.964c1.575,0,3.127-0.227,4.64-0.61 l3.018-1.886v-26.854l-17.748,0.308L229.378,251.916z"/>
|
||||
<g>
|
||||
<path style="fill:#FFBE5A;" d="M226.947,291.354l-2.925-2.925c-1.773-1.773-1.726-4.664,0.106-6.378l48.417-45.496l6.275,6.275 l-45.496,48.417C231.612,293.08,228.722,293.129,226.947,291.354z"/>
|
||||
<circle style="fill:#FFBE5A;" cx="225.49" cy="289.89" r="2.218"/>
|
||||
</g>
|
||||
<ellipse transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 301.1345 604.1228)" style="fill:#F5F5F5;" cx="275.685" cy="239.694" rx="4.436" ry="2.218"/>
|
||||
<g>
|
||||
<path style="fill:#FFBE5A;" d="M285.053,291.354l2.925-2.925c1.773-1.773,1.726-4.664-0.106-6.378l-48.417-45.496l-6.275,6.275 l45.496,48.417C280.39,293.08,283.279,293.129,285.053,291.354z"/>
|
||||
<circle style="fill:#FFBE5A;" cx="286.51" cy="289.89" r="2.218"/>
|
||||
</g>
|
||||
<ellipse transform="matrix(0.7071 -0.7071 0.7071 0.7071 -100.2755 237.3152)" style="fill:#F5F5F5;" cx="236.327" cy="239.701" rx="4.436" ry="2.218"/>
|
||||
<ellipse style="fill:#FFBE5A;" cx="256" cy="266.14" rx="19.616" ry="23.294"/>
|
||||
<polygon style="fill:#FF4B55;" points="256,245.059 257.042,249.578 259.428,245.602 259.021,250.221 262.52,247.178 260.706,251.446 264.974,249.632 261.93,253.13 266.55,252.724 262.573,255.111 267.093,256.152 262.573,257.193 266.55,259.58 261.93,259.174 264.974,262.671 260.706,260.857 262.52,265.126 259.021,262.082 259.428,266.701 257.042,262.726 256,267.244 254.959,262.726 252.573,266.701 252.979,262.082 249.481,265.126 251.294,260.857 247.027,262.671 250.07,259.174 245.451,259.58 249.427,257.193 244.908,256.152 249.427,255.111 245.451,252.724 250.07,253.13 247.027,249.632 251.294,251.446 249.481,247.178 252.979,250.221 252.573,245.602 254.959,249.578 "/>
|
||||
<path style="fill:#73AF00;" d="M280.542,265.719c0,0-7.349,1.941-12.132-2.08c-5.316-4.469-9.302-6.579-11.01-7.371 c-0.585-0.271-1.239-0.271-1.825-0.001c-1.224,0.565-3.476,1.736-5.468,3.49c-2.912,2.566-11.855,7.626-13.657,7.626v11.029 l14.073,12.196l16.639-0.486L280.542,265.719z"/>
|
||||
<path style="fill:#3CC8FF;" d="M256,294.975c-14.068,0-25.513-12.938-25.513-28.84s11.444-28.84,25.513-28.84 s25.513,12.938,25.513,28.84S270.068,294.975,256,294.975z M256,243.95c-10.398,0-18.857,9.953-18.857,22.185 c0,12.232,8.459,22.185,18.857,22.185c10.398,0,18.857-9.953,18.857-22.185C274.857,253.903,266.398,243.95,256,243.95z"/>
|
||||
<g>
|
||||
<path style="fill:#FFBE5A;" d="M252.178,288.946l0.489,1.465l1.545,0.012c0.2,0.001,0.282,0.257,0.122,0.375l-1.242,0.918 l0.466,1.473c0.061,0.191-0.157,0.349-0.32,0.232l-1.257-0.898l-1.257,0.898c-0.162,0.116-0.38-0.042-0.32-0.232l0.466-1.473 l-1.242-0.918c-0.161-0.119-0.078-0.374,0.122-0.375l1.545-0.012l0.489-1.465C251.847,288.756,252.115,288.756,252.178,288.946z"/>
|
||||
<path style="fill:#FFBE5A;" d="M245.242,285.964l0.489,1.465l1.545,0.012c0.2,0.001,0.282,0.257,0.122,0.375l-1.242,0.918 l0.466,1.473c0.061,0.191-0.157,0.349-0.32,0.232l-1.257-0.898l-1.257,0.898c-0.162,0.116-0.38-0.042-0.32-0.232l0.466-1.473 l-1.242-0.918c-0.161-0.119-0.078-0.374,0.122-0.375l1.545-0.012l0.489-1.465C244.911,285.774,245.18,285.774,245.242,285.964z"/>
|
||||
<path style="fill:#FFBE5A;" d="M239.673,280.904l0.489,1.465l1.545,0.012c0.2,0.001,0.282,0.257,0.122,0.375l-1.242,0.918 l0.466,1.473c0.061,0.191-0.157,0.349-0.32,0.232l-1.257-0.898l-1.257,0.898c-0.162,0.116-0.38-0.042-0.32-0.232l0.466-1.473 l-1.242-0.918c-0.161-0.119-0.078-0.374,0.122-0.375l1.545-0.012l0.489-1.465C239.342,280.714,239.61,280.714,239.673,280.904z"/>
|
||||
<path style="fill:#FFBE5A;" d="M235.875,274.167l0.489,1.465l1.545,0.012c0.2,0.001,0.282,0.257,0.122,0.375l-1.242,0.918 l0.466,1.473c0.061,0.191-0.157,0.349-0.32,0.232l-1.257-0.898l-1.257,0.898c-0.162,0.116-0.38-0.042-0.32-0.232l0.466-1.473 l-1.242-0.918c-0.161-0.119-0.078-0.374,0.122-0.375l1.545-0.012l0.489-1.465C235.544,273.977,235.812,273.977,235.875,274.167z"/>
|
||||
<path style="fill:#FFBE5A;" d="M234.199,266.333l0.489,1.465l1.545,0.012c0.2,0.001,0.282,0.257,0.122,0.375l-1.242,0.918 l0.466,1.473c0.061,0.191-0.157,0.349-0.32,0.232l-1.257-0.898l-1.257,0.898c-0.162,0.116-0.38-0.042-0.32-0.232l0.466-1.473 l-1.242-0.918c-0.161-0.119-0.078-0.374,0.122-0.375l1.545-0.012l0.489-1.465C233.867,266.143,234.136,266.143,234.199,266.333z"/>
|
||||
<path style="fill:#FFBE5A;" d="M259.812,288.946l-0.489,1.465l-1.545,0.012c-0.2,0.001-0.282,0.257-0.122,0.375l1.242,0.918 l-0.466,1.473c-0.061,0.191,0.157,0.349,0.32,0.232l1.257-0.898l1.257,0.898c0.162,0.116,0.38-0.042,0.32-0.232l-0.466-1.473 l1.242-0.918c0.161-0.119,0.078-0.374-0.122-0.375l-1.545-0.012l-0.489-1.465C260.143,288.756,259.875,288.756,259.812,288.946z"/>
|
||||
<path style="fill:#FFBE5A;" d="M266.748,285.964l-0.489,1.465l-1.545,0.012c-0.2,0.001-0.283,0.257-0.122,0.375l1.242,0.918 l-0.466,1.473c-0.061,0.191,0.157,0.349,0.32,0.232l1.257-0.898l1.257,0.898c0.162,0.116,0.38-0.042,0.32-0.232l-0.466-1.473 l1.242-0.918c0.161-0.119,0.078-0.374-0.122-0.375l-1.545-0.012l-0.489-1.465C267.079,285.774,266.81,285.774,266.748,285.964z"/>
|
||||
<path style="fill:#FFBE5A;" d="M272.317,280.904l-0.489,1.465l-1.545,0.012c-0.2,0.001-0.282,0.257-0.122,0.375l1.242,0.918 l-0.466,1.473c-0.061,0.191,0.157,0.349,0.32,0.232l1.257-0.898l1.257,0.898c0.162,0.116,0.38-0.042,0.32-0.232l-0.466-1.473 l1.242-0.918c0.161-0.119,0.078-0.374-0.122-0.375l-1.545-0.012l-0.489-1.465C272.649,280.714,272.38,280.714,272.317,280.904z"/>
|
||||
<path style="fill:#FFBE5A;" d="M276.115,274.167l-0.489,1.465l-1.545,0.012c-0.2,0.001-0.282,0.257-0.122,0.375l1.242,0.918 l-0.466,1.473c-0.061,0.191,0.157,0.349,0.32,0.232l1.257-0.898l1.257,0.898c0.162,0.116,0.38-0.042,0.32-0.232l-0.466-1.473 l1.242-0.918c0.161-0.119,0.078-0.374-0.122-0.375l-1.545-0.012l-0.489-1.465C276.446,273.977,276.178,273.977,276.115,274.167z"/>
|
||||
<path style="fill:#FFBE5A;" d="M277.791,266.333l-0.489,1.465l-1.545,0.012c-0.2,0.001-0.283,0.257-0.122,0.375l1.242,0.918 l-0.466,1.473c-0.061,0.191,0.157,0.349,0.32,0.232l1.257-0.898l1.257,0.898c0.162,0.116,0.38-0.042,0.32-0.232l-0.466-1.473 l1.242-0.918c0.161-0.119,0.078-0.374-0.122-0.375l-1.545-0.012l-0.489-1.465C278.123,266.143,277.855,266.143,277.791,266.333z"/>
|
||||
</g>
|
||||
<path style="fill:#F5F5F5;" d="M246.361,280.358l0.737,3.526h0.318v-2.406c0,0,0.524,1.678,1.266,2.406h0.6 c-0.287-0.369-0.803-1.135-0.803-1.927c0-1.091,0.868-1.24,0.868-2.407h0.744v4.333h0.435l0.806-3.861c0,0,0.664,2.415,1.914,3.861 h0.556c-0.401-0.589-1.234-2.109-1.081-4.407c0,0,1.191-0.596,1.191-2.208v-2.294c0-0.429,0.349-0.778,0.778-0.778h0.535 c0,0-0.796-1.544-1.647-1.768v-0.968l-0.641,0.969c-0.612,0.132-0.973,0.698-0.973,1.304v1.397c0,0.429-0.348,0.778-0.778,0.778 h-2.781c-0.823,0-2.142,0.823-2.142,1.878s0.791,1.747,0.791,1.747L246.361,280.358z"/>
|
||||
<path style="fill:#FFBE5A;" d="M258.819,276.843h-0.255c-2.016,0.11-3.142,1.436-3.142,1.436l2.045,2.045v3.848h2.447v-3.848 l2.045-2.045C261.961,278.279,260.835,276.954,258.819,276.843z"/>
|
||||
<g>
|
||||
<rect x="263.12" y="270.55" style="fill:#F5F5F5;" width="0.739" height="13.634"/>
|
||||
<path style="fill:#F5F5F5;" d="M263.511,270.445l-3.987,4.819c0,0-0.52-2.323,1.803-4.61l-5.13,0.936c0,0,1.56-2.912,5.65-2.6 l-4.194-3.501c0,0,3.605-0.207,5.442,2.496c0,0,1.039-3.119,3.951-3.258l-2.403,3.651c0,0,2.403-1.225,5.731-0.15l-4.957,1.318 c0,0,2.773,0.277,3.917,4.333l-4.298-2.946c0,0,1.318,1.56,0.832,4.61L263.511,270.445z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="212.519,236.629 202.756,231.748 209.856,240.622 213.849,240.622 "/>
|
||||
</g>
|
||||
<path style="fill:#825546;" d="M262.941,230.978l26.337-8.104l-13.981-5.242c-2.49-0.935-5.129-1.412-7.789-1.412h-2.633 c-1.225,0-2.218,0.993-2.218,2.218v2.218H256h-6.655v-2.218c0-1.225-0.993-2.218-2.218-2.218h-2.633 c-2.66,0-5.299,0.479-7.789,1.412l-13.981,5.242l26.337,8.104c1.31,0.403,1.944,1.886,1.332,3.113l-3.266,6.531h17.748l-3.266-6.531 C260.995,232.865,261.63,231.381,262.941,230.978z"/>
|
||||
<circle style="fill:#F5F5F5;" cx="256" cy="222.87" r="4.436"/>
|
||||
<path style="fill:#FFBE5A;" d="M258.219,222.874L258.219,222.874c0,1.225-0.993,2.218-2.218,2.218h-8.874l3.787-3.787 c0.416-0.416,0.98-0.65,1.569-0.65H256C257.226,220.657,258.219,221.65,258.219,222.874z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 14 KiB |
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#41479B;" d="M0,385.379c0,21.177,17.167,38.345,38.345,38.345h435.309c21.177,0,38.345-17.167,38.345-38.345V256 H0V385.379z"/>
|
||||
<path style="fill:#FF4B55;" d="M473.654,88.276H38.345C17.167,88.276,0,105.444,0,126.621V256h511.999V126.621 C511.999,105.444,494.831,88.276,473.654,88.276z"/>
|
||||
<polygon style="fill:#F5F5F5;" points="255.999,88.276 0,256 255.999,423.724 512,256 "/>
|
||||
<path style="fill:#FFE15A;" d="M258.647,158.704l21.191,60.962l64.526,1.315c2.656,0.054,3.753,3.43,1.636,5.035l-51.431,38.991 l18.689,61.775c0.769,2.543-2.102,4.63-4.284,3.112l-52.975-36.865l-52.976,36.864c-2.182,1.517-5.053-0.568-4.284-3.112 l18.689-61.775l-51.431-38.991c-2.118-1.606-1.021-4.981,1.636-5.035l64.526-1.315l21.191-60.962 C254.225,156.193,257.775,156.193,258.647,158.704z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path style="fill:#73AF00;" d="M473.655,88.275H38.345C17.167,88.275,0,105.442,0,126.62V385.38 c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345V126.62 C512,105.442,494.833,88.275,473.655,88.275z"/>
|
||||
<path style="fill:#FFE15A;" d="M251.41,135.207L65.354,248.458c-5.651,3.439-5.651,11.641,0,15.081L251.41,376.792 c2.819,1.716,6.36,1.716,9.18,0l186.056-113.252c5.651-3.439,5.651-11.641,0-15.081L260.59,135.207 C257.771,133.492,254.229,133.492,251.41,135.207z"/>
|
||||
<circle style="fill:#41479B;" cx="256" cy="255.999" r="70.62"/>
|
||||
<g>
|
||||
<path style="fill:#F5F5F5;" d="M195.4,219.872c-3.332,5.578-5.905,11.64-7.605,18.077c39.149-2.946,97.062,8.006,133.922,43.773 c2.406-6.141,3.995-12.683,4.59-19.522C288.247,230.167,235.628,218.776,195.4,219.872z"/>
|
||||
<path style="fill:#F5F5F5;" d="M258.925,280.099l1.88,5.638l5.943,0.046c0.769,0.006,1.088,0.988,0.469,1.445l-4.781,3.531 l1.793,5.666c0.232,0.734-0.604,1.341-1.229,0.893l-4.835-3.456l-4.835,3.456c-0.626,0.447-1.461-0.159-1.229-0.893l1.793-5.666 l-4.781-3.531c-0.619-0.457-0.3-1.439,0.469-1.445l5.943-0.046l1.88-5.638C257.649,279.368,258.681,279.368,258.925,280.099z"/>
|
||||
<path style="fill:#F5F5F5;" d="M282.024,294.683l0.809,2.426l2.558,0.02c0.331,0.002,0.468,0.425,0.202,0.622l-2.058,1.519 l0.771,2.439c0.099,0.316-0.259,0.577-0.53,0.384l-2.081-1.487l-2.081,1.487c-0.269,0.193-0.629-0.068-0.529-0.384l0.771-2.439 l-2.058-1.519c-0.267-0.196-0.129-0.619,0.202-0.622l2.558-0.02l0.809-2.426C281.474,294.368,281.919,294.368,282.024,294.683z"/>
|
||||
<path style="fill:#F5F5F5;" d="M248.938,269.388l0.809,2.426l2.558,0.02c0.331,0.002,0.469,0.425,0.202,0.622l-2.058,1.519 l0.771,2.439c0.099,0.316-0.259,0.577-0.529,0.384l-2.081-1.487l-2.081,1.487c-0.269,0.193-0.629-0.068-0.53-0.384l0.771-2.439 l-2.058-1.519c-0.266-0.196-0.129-0.619,0.202-0.622l2.558-0.02l0.809-2.426C248.388,269.076,248.833,269.076,248.938,269.388z"/>
|
||||
<path style="fill:#F5F5F5;" d="M204.13,266.446l0.809,2.426l2.558,0.02c0.331,0.002,0.469,0.425,0.202,0.622l-2.058,1.519 l0.771,2.439c0.099,0.316-0.259,0.577-0.53,0.384l-2.081-1.487l-2.081,1.487c-0.269,0.192-0.629-0.068-0.529-0.384l0.771-2.439 l-2.058-1.519c-0.267-0.196-0.129-0.619,0.202-0.622l2.558-0.02l0.809-2.426C203.581,266.133,204.025,266.133,204.13,266.446z"/>
|
||||
<path style="fill:#F5F5F5;" d="M241.614,293.846l0.809,2.426l2.558,0.02c0.331,0.002,0.469,0.425,0.202,0.622l-2.058,1.519 l0.771,2.439c0.099,0.316-0.259,0.577-0.529,0.384l-2.081-1.487l-2.081,1.487c-0.269,0.193-0.629-0.068-0.53-0.384l0.771-2.439 l-2.058-1.519c-0.266-0.196-0.129-0.619,0.202-0.622l2.558-0.02l0.809-2.426C241.065,293.532,241.51,293.532,241.614,293.846z"/>
|
||||
<path style="fill:#F5F5F5;" d="M220.99,264.753l0.662,1.984l2.092,0.017c0.27,0.002,0.383,0.348,0.166,0.509l-1.683,1.242 l0.631,1.994c0.082,0.258-0.212,0.472-0.433,0.314l-1.702-1.216l-1.702,1.216c-0.221,0.158-0.514-0.056-0.433-0.314l0.631-1.994 l-1.683-1.242c-0.217-0.161-0.106-0.507,0.166-0.509l2.092-0.017l0.662-1.984C220.541,264.497,220.904,264.497,220.99,264.753z"/>
|
||||
<path style="fill:#F5F5F5;" d="M283.819,223.794l0.828,2.482l2.616,0.02c0.339,0.002,0.479,0.435,0.206,0.637l-2.104,1.554 l0.789,2.495c0.103,0.323-0.266,0.59-0.541,0.393l-2.129-1.522l-2.129,1.522c-0.276,0.198-0.643-0.071-0.541-0.393l0.789-2.495 l-2.104-1.554c-0.273-0.201-0.132-0.633,0.206-0.637l2.616-0.02l0.828-2.482C283.257,223.47,283.712,223.47,283.819,223.794z"/>
|
||||
<path style="fill:#F5F5F5;" d="M207.012,252.615l0.662,1.984l2.092,0.017c0.27,0.002,0.383,0.348,0.166,0.509l-1.683,1.242 l0.631,1.994c0.082,0.258-0.212,0.472-0.433,0.314l-1.702-1.216l-1.702,1.216c-0.221,0.158-0.514-0.056-0.433-0.314l0.631-1.994 l-1.683-1.242c-0.218-0.161-0.106-0.506,0.166-0.509l2.092-0.017l0.662-1.984C206.563,252.358,206.926,252.358,207.012,252.615z"/>
|
||||
<path style="fill:#F5F5F5;" d="M217.112,280.581l1.002,3.005l3.168,0.024c0.41,0.003,0.58,0.526,0.25,0.77l-2.549,1.882l0.956,3.02 c0.124,0.391-0.321,0.715-0.655,0.476l-2.578-1.843l-2.578,1.843c-0.333,0.238-0.779-0.085-0.655-0.476l0.956-3.02l-2.549-1.882 c-0.33-0.244-0.16-0.767,0.25-0.77l3.168-0.024l1.002-3.005C216.433,280.191,216.983,280.191,217.112,280.581z"/>
|
||||
<path style="fill:#F5F5F5;" d="M294.903,295.313l0.631,1.891l1.993,0.015c0.258,0.002,0.365,0.331,0.158,0.484l-1.603,1.184 l0.601,1.9c0.077,0.246-0.202,0.449-0.413,0.299l-1.621-1.159l-1.622,1.159c-0.21,0.15-0.49-0.053-0.413-0.299l0.601-1.9 l-1.603-1.184c-0.207-0.153-0.1-0.482,0.158-0.484l1.993-0.015l0.63-1.891C294.475,295.068,294.822,295.068,294.903,295.313z"/>
|
||||
<path style="fill:#F5F5F5;" d="M301.877,280.883l0.809,2.426l2.558,0.02c0.331,0.002,0.469,0.425,0.202,0.622l-2.058,1.519 l0.771,2.439c0.099,0.316-0.259,0.577-0.529,0.384l-2.081-1.487l-2.081,1.487c-0.269,0.193-0.629-0.068-0.529-0.384l0.771-2.439 l-2.058-1.519c-0.266-0.196-0.129-0.619,0.202-0.622l2.558-0.02l0.809-2.426C301.327,280.568,301.772,280.568,301.877,280.883z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 5.2 KiB |
@ -1,40 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<g>
|
||||
<path style="fill:#82AFFF;" d="M473.885,88.279H38.115C17.045,88.403,0,105.517,0,126.617v73.478h512v-73.478 C512,105.517,494.955,88.403,473.885,88.279z"/>
|
||||
<path style="fill:#82AFFF;" d="M0,385.376c0,21.177,17.167,38.345,38.345,38.345h435.31c21.177,0,38.345-17.167,38.345-38.345 v-73.465H0V385.376z"/>
|
||||
</g>
|
||||
<rect y="200.1" style="fill:#FFE15A;" width="512" height="111.81"/>
|
||||
<path style="fill:#464655;" d="M12.831,413.993l193.267-153.415c2.946-2.338,2.946-6.812,0-9.151L12.824,98.007 C4.958,105.03,0,115.243,0,126.617v258.759C0,396.755,4.96,406.97,12.831,413.993z"/>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.0 KiB |