Method, apparatus and device for applying proxy configuration
By automatically detecting and configuring proxy servers in desktop applications developed using the Electron framework, the proxy configuration problem when clients frequently switch network environments is solved. This eliminates the need for manual configuration, improves communication stability and efficiency, and reduces security risks.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2026-06-16
AI Technical Summary
In desktop applications developed using the Electron framework, when clients frequently switch network environments, it is necessary to manually configure proxy servers, which leads to a large workload, high error rate, lack of flexibility, negative impact on user experience, and difficulty in centralized management.
By detecting the network environment during client operation, the system automatically obtains and verifies the attribute information of the proxy server to determine whether it meets the pre-configured restrictions. If it does, the system automatically completes the proxy configuration; otherwise, the user is prompted to manually configure and store the proxy information in encrypted form.
It reduces the complexity of manual configuration for users, improves the stability and efficiency of network communication, and ensures the security and compliance of data transmission.
Smart Images

Figure CN122226599A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and device for processing application agent configuration. Background Technology
[0002] Electron is an open-source framework for building cross-platform desktop applications that can run on multiple operating systems. This cross-platform capability makes Electron the foundation for many popular applications.
[0003] Taking a desktop application developed using the Electron framework as an example, when using this application, the client may need to access an external server via network requests to achieve specific business functions. Because enterprise intranets and extranets are isolated, a network proxy is typically required to connect them. Traditional proxy configuration methods involve manually configuring the proxy based on the client's network environment. However, when the client runs in different network environments, the proxy server needs to be manually configured every time the network switches, resulting in a large workload, high error rate, lack of flexibility, negative impact on user experience, and difficulty in centralized management.
[0004] In conclusion, when clients switch between different network environments, providing a technical solution to resolve network connectivity issues without requiring manual proxy configuration each time is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a method, apparatus, and device for processing application proxy configuration, so as to achieve the technical effect that when the client switches between network environments, it does not need to manually configure the proxy server every time.
[0006] In a first aspect, embodiments of this application provide a method for processing application proxy configuration, including:
[0007] During client operation, the network environment is monitored to determine whether a proxy server has been configured.
[0008] If it is determined that a target proxy server has been configured, then obtain the attribute information of the target proxy server;
[0009] Based on the attribute information of the target proxy server, determine whether the target proxy server meets the pre-configured proxy usage restrictions of the client;
[0010] If the target proxy server is determined to meet the proxy usage restrictions, then communication between the target proxy server and the business server is established based on the attribute information.
[0011] In one possible implementation, the agent usage restrictions include the following conditions:
[0012] Allow the use of a proxy server;
[0013] Specific restrictions on the proxy servers that are allowed to be used, wherein the specific restrictions include at least one of the following: the time range during which the proxy servers are allowed to be used, the address location of the proxy servers that are allowed to be used, and the protocol type of the proxy servers that are allowed to be used.
[0014] In one possible implementation, the attribute information of the target proxy server includes the address, port, and supported protocol types of the target proxy server;
[0015] Accordingly, determining whether the target proxy server meets the pre-configured proxy usage restrictions for the client based on the attribute information of the target proxy server includes:
[0016] Determine whether the client allows the use of a proxy server;
[0017] If it is determined that the client is allowed to use a proxy server, then based on the address, port, and supported protocol types of the target proxy server, it is determined whether the specific restrictions corresponding to the client are met.
[0018] If the attribute information is determined to meet the specific restriction conditions, then the target proxy server is determined to meet the client's proxy usage restriction conditions.
[0019] If the client does not allow the use of a proxy server or the target proxy server does not meet the specific restrictions corresponding to the client, then it is determined that the target proxy server does not meet the proxy usage restrictions of the client.
[0020] In one possible implementation, the method further includes:
[0021] If it is determined that no proxy server has been configured, a manual configuration prompt message will be pushed to the user to manually configure the proxy server.
[0022] In one possible implementation, the method further includes:
[0023] In response to the user's proxy server configuration operation, the system obtains the attribute information of the target proxy server configured by the user and stores the attribute information of the target proxy server in encrypted form.
[0024] In one possible implementation, the step of detecting the network environment and determining whether a proxy server has been configured includes:
[0025] Detect whether the network communication between the client and the business server is smooth;
[0026] If the network communication between the client and the business server is smooth, then the client can directly access the business server.
[0027] If network communication between the client and the business server is not smooth, the system determines whether the client has been configured with a proxy server based on the information stored in the preset proxy storage area.
[0028] Secondly, embodiments of this application provide a processing apparatus for application proxy configuration, comprising:
[0029] The network detection module is used to detect the network environment during client operation and determine whether a proxy server has been configured.
[0030] The proxy identification module is used to obtain the attribute information of the target proxy server if it is determined that the target proxy server has been configured.
[0031] The policy management module is used to determine whether the target proxy server meets the pre-configured proxy usage restrictions of the client based on the attribute information of the target proxy server.
[0032] The proxy configuration module is used to establish communication between the target proxy server and the business server based on the attribute information if it is determined that the target proxy server meets the proxy usage restrictions.
[0033] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0034] The memory stores computer-executed instructions;
[0035] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0036] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0037] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0038] The application proxy configuration processing method, apparatus, and device provided in this application embodiment detect the network environment during client operation to determine whether a proxy server has already been configured. If a target proxy server is detected, the attribute information of the proxy server is obtained to further determine whether the proxy server meets the proxy usage restrictions preset by the client. If the target proxy server meets the restrictions, the proxy configuration is automatically completed, enabling the client to establish communication with the business server through the target proxy server. This achieves the technical effect of eliminating the need for manual proxy server configuration each time the client switches between network environments. Attached Figure Description
[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0040] Figure 1 A schematic diagram illustrating a scenario for processing an application proxy configuration method provided in this application;
[0041] Figure 2 A flowchart illustrating an application proxy configuration processing method provided in this application. Figure 1 ;
[0042] Figure 3 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 1 ;
[0043] Figure 4 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 2 ;
[0044] Figure 5 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 3 ;
[0045] Figure 6 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 4 ;
[0046] Figure 7 A schematic diagram illustrating the overall process of an application proxy configuration processing method provided in this application;
[0047] Figure 8 A schematic diagram of the structure of an application agent configuration processing device provided in this application;
[0048] Figure 9 This is a schematic diagram of the structure of an electronic device provided in this application.
[0049] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0050] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0051] First, let me explain the terms used in this application:
[0052] Electron is an open-source framework for developing cross-platform desktop applications using web technologies such as JavaScript, HTML, and CSS. It allows developers to build desktop applications for Windows, macOS, and Linux platforms using a single codebase, ensuring compatibility with all three operating systems. Electron's core idea is to combine Chromium (a browser engine for rendering web page content) and Node.js (a JavaScript runtime for server-side development), enabling developers to build user interfaces using front-end technologies while handling back-end logic with Node.js. By using Electron, developers can write code once and run it on multiple operating systems, reducing development and maintenance workload.
[0053] An intranet, also known as a Local Area Network (LAN), is a group of interconnected computers within a specific area, typically covering a radius of several kilometers. LANs are closed systems and can consist of two computers in an office or thousands of computers within a company. They enable functions such as file management, application software sharing, printer sharing, workgroup scheduling, email, and fax communication. A company intranet, on the other hand, is a closed computer network environment established within a company for communication and resource sharing among employees. This network may include workstations, servers, and other devices from multiple departments or teams, and may be configured to allow access to external networks, such as the internet, only through specific gateways or proxies.
[0054] An external network, also known as a wide area network (WAN), or public network, is a remote network that connects computers on different local area networks (LANs) or metropolitan area networks (MANs). It typically spans a large physical area, covering distances from tens to thousands of kilometers, connecting multiple regions, cities, and countries, or even crossing continents to provide long-distance communication, forming an international network.
[0055] A Metropolitan Area Network (MAN) is a network type that falls between a LAN and a WAN. MANs can be considered an extension of a Local Area Network (LAN), typically covering a city or metropolitan area, connecting multiple LANs to form a larger network. Their coverage area is usually larger than that of a LAN but smaller than that of a WAN, typically ranging from a few kilometers to tens of kilometers. The primary function of a MAN is to provide high-speed network connectivity and data transmission services within a city, connecting businesses, government agencies, schools, and other organizations to achieve resource and information sharing.
[0056] A proxy is a network technology that allows a proxy server to be set up between a client and a server. The proxy server sends requests to the server and receives responses on behalf of the client, thereby controlling the client's network access.
[0057] A proxy server can hide a client's real Internet Protocol address (IP), protecting the client's privacy and security. Proxy servers include various types such as HTTP proxy servers (using Hypertext Transfer Protocol, HTTP) and SOCKS proxy servers (using the SOCKS protocol). They support multiple protocols including HTTP, File Transfer Protocol (FTP), and Simple Mail Transfer Protocol (SMTP), offering strong flexibility and scalability.
[0058] The application background of this application is explained below:
[0059] Electron provides a rich set of native operating system application programming interfaces (APIs), enabling users to create desktop applications using pure JavaScript. Its cross-platform nature makes Electron the foundation for many popular applications, such as the chat software Slack and the code editor Visual Studio Code. Electron integrates a multi-process architecture from Chromium, making its architecture very similar to modern web browsers. It can manage browser sessions, cookies, caching, and proxy configurations through the main process's session module.
[0060] Taking a desktop application developed using the Electron framework as an example, when a client uses this open-source Electron desktop application, it sometimes needs to send network requests to access external servers, call external server interfaces, or external resources to complete a specific business function. However, since most enterprises have their own internal networks, and the services providing external server interfaces are deployed on the external network, there is isolation between the internal and external networks. Therefore, a proxy needs to be configured to connect the internal and external networks.
[0061] Traditional proxy configuration methods involve manually configuring the proxy based on the client's network environment. Taking the complex example of achieving network communication between an Electron client A and a business server S running in different network environments, as recommended in the official Electron documentation, the method is as follows: First, manually configure the proxy based on the client's network environment. The proxy server forwards the client's requests to the external server. The server accepts the forwarded requests, processes the business logic, and returns the client's request result to the proxy server, which then forwards it back to the client. This traditional proxy configuration method has several limitations, including the need for manual proxy server configuration for each network switch when the Electron client runs in different network environments, resulting in a large workload, susceptibility to proxy configuration errors, lack of flexibility, negatively impacting user experience, and difficulty in centralized management.
[0062] In summary, when clients switch between different network environments, providing a technical solution that eliminates the need for manual proxy configuration each time, enabling flexible and efficient network communication between clients and external servers under different network conditions, thereby reducing workload, improving proxy configuration flexibility, enhancing user experience, and achieving centralized management are urgent issues to be addressed.
[0063] Figure 1 A schematic diagram illustrating a scenario for an application proxy configuration processing method provided in this application, such as... Figure 1As shown, the specific application scenarios of this application include clients, proxy servers, and business servers. The client can be applied to various network environments. During client operation, it detects the network environment to determine if a proxy server has already been configured. If a target proxy server is detected, its attribute information is obtained to further determine whether the proxy server meets the proxy usage restrictions preset by the client. If the target proxy server meets the restrictions, the proxy configuration is automatically completed, and the proxy server forwards the requests from the client with the completed proxy configuration to the business server.
[0064] The client can be a local personal computer (PC), desktop computer, etc., to use a desktop application developed using the Electron framework; the proxy server can be an HTTP proxy server or a SOCKS proxy server; the business server can be a cloud server, an enterprise internal server, etc. The physical devices mentioned above are illustrative in the figures and do not represent the only ones; this application does not specifically limit the specific form and type of the physical devices involved. It should be noted that the application proxy configuration processing method provided in this application can be used in the field of computer technology, as well as in fields other than computer technology; this application does not specifically limit its application field.
[0065] As can be seen from the above scenarios, traditional manual proxy configuration methods are inefficient and prone to configuration errors when frequently switching network environments. This not only increases the user's workload but also lacks centralized management capabilities, failing to meet the flexibility and security requirements of modern applications. During their research on optimizing proxy configuration methods between clients and external servers, the inventors discovered that designing a proxy configuration module can solve these technical problems, eliminating the need for manual proxy configuration each time the client switches network environments. Specifically, the proxy configuration module only requires manual configuration once upon initial switching to the new network environment, when the system proxy cannot be detected and automatic configuration is not possible. The module then records the proxy configuration under that network environment, enabling automatic configuration when the client switches back to the same network environment. Based on this, this application provides a method, apparatus, and device for applying proxy configuration.
[0066] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0067] Figure 2A flowchart illustrating an application proxy configuration processing method provided in this application. Figure 1 , Figure 3 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 1 ,like Figure 2 As shown, the method includes:
[0068] S201. During client operation, the network environment is detected to determine whether a proxy server has been configured.
[0069] In this step, the network environment is tested. The client first attempts to establish a direct connection between itself and the business server, determining whether the client can connect normally. This is done by sending and receiving test data packets to verify the connection's stability and response speed. When the direct connection attempt encounters obstacles, such as high network latency or severe packet loss, the client checks if a proxy server is configured. A proxy server, acting as an intermediary, can cache data, optimize routing, and even bypass network blocking in some cases, thereby improving the communication quality between the client and the server.
[0070] Specifically, such as Figure 3 As shown, the Electron main process is responsible for launching an independent process to execute network detection tasks. During client operation, the network detection module monitors the network communication between the client and the business server in real time to ensure smooth data transmission. If the network communication between the client and the business server is smooth, the client directly accesses the business server; if the network communication between the client and the business server is not smooth, the module determines whether the client has configured a proxy server based on the information stored in the preset proxy storage area, and transmits the detection result to the proxy identification module.
[0071] S202. If it is determined that the target proxy server has been configured, obtain the attribute information of the target proxy server.
[0072] In this step, the target proxy server's attribute information includes its address, port, and supported protocol types. The address refers to the proxy server's specific location on the network, usually represented by an IP address or domain name, used to identify and locate the server. The port is the entry point used by the target proxy server to listen for and receive network requests; it is usually a number that identifies a specific communication channel. Supported protocol types refer to the network protocols the proxy server can process and forward, defining the rules and formats for data transmission to ensure smooth communication between the client and the server.
[0073] Specifically, Figure 4 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 2 ,like Figure 4 As shown, based on the detection results of the network detection module, if the proxy identification module determines that a target proxy server has been configured, it further analyzes and identifies the target proxy server's attribute information, including its address, port, and supported protocol types. Then, the identified target proxy server attribute information is synchronized to the policy management module.
[0074] S203. Based on the attribute information of the target proxy server, determine whether the target proxy server meets the pre-configured client proxy usage restrictions.
[0075] In this step, the client's proxy usage restrictions include: whether the use of a proxy server is allowed; and specific restrictions on the allowed proxy servers, wherein the specific restrictions include at least one of the following: the time range during which the proxy server is allowed to be used, the address location of the allowed proxy server, and the protocol type of the allowed proxy server.
[0076] First, determine whether the client allows the use of a proxy server:
[0077] If the client does not allow the use of a proxy server, it means that the target proxy server does not meet the client's proxy usage restrictions. For example, in some high-security network environments, the client may prohibit the use of any proxy server to prevent data leakage or unauthorized access. In this case, the communication connection between the client and the business server can be achieved by using a Virtual Private Network (VPN).
[0078] If it is determined that the client is permitted to use a proxy server, then based on the target proxy server's address, port, and supported protocol types, it is determined whether the client's specific restrictions are met. Among these restrictions, the permitted time range for proxy server use typically includes a start and end date, or specific working hours. For example, allowing proxy server use only during weekdays and prohibiting it during nighttimes or weekends reduces potential security risks. The location of the permitted proxy server ensures that data transmission between the client and the business server complies with local laws and regulations. For instance, a company may only allow clients to use proxy servers in specific countries to prevent unauthorized operations. The permitted proxy server type specifies multiple aspects such as communication methods, data transmission formats, security, functional characteristics, application scenarios, and compliance. For example, in scenarios requiring the protection of sensitive information or secure communication, the permitted proxy server type is an HTTPS proxy server supporting Hypertext Transfer Protocol Secure (HTTPS), which adds a Secure Socket Layer (SSL) encryption protocol to the HTTP proxy, providing better protection for data security and privacy.
[0079] Specifically, Figure 5 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 3 ,like Figure 5 As shown, the policy management module determines whether manual proxy configuration is required based on the identification results of the proxy identification module and the pre-configured client proxy usage restrictions, and then determines the target proxy server that ultimately meets the pre-configured client proxy usage restrictions.
[0080] In one possible implementation, the proxy identification module, based on the detection results of the network detection module, if it determines that no proxy server has been configured, pushes a manual configuration prompt message to remind the user to manually configure the proxy server.
[0081] Specifically, taking the Electron client as an example, if it is determined that no proxy server has been configured, the client cannot detect the system proxy, and the user must manually configure the proxy server. Simultaneously, in response to the user's proxy server configuration, the system obtains the attribute information of the target proxy server configured by the user and stores this attribute information in encryption. When the Electron client switches to the same network environment again, the network detection module will detect that a target proxy server has been configured in that network environment, and will then further obtain the target proxy server's attribute information.
[0082] S204. If it is determined that the target proxy server meets the proxy usage restrictions, then communication between the target proxy server and the business server is established based on the attribute information.
[0083] Figure 6 A schematic diagram of a specific implementation method for processing application agent configuration provided in this application Figure 4 ,like Figure 6 As shown, taking the Electron client as an example, if it is determined that the attribute information meets specific restrictions, that is, the target proxy server meets the proxy usage restrictions, the proxy configuration module obtains the corresponding target proxy server's attribute information through the IP address of the current network environment based on all the proxy configuration information stored in the policy management module. It then calls the Electron client's API to apply the target proxy server's attribute information to the network session, completing the automatic proxy configuration and enabling communication between the Electron client and the business server to be established through the target proxy server.
[0084] In one possible implementation, if it is determined that the target proxy server does not meet the specific restrictions corresponding to the client, i.e., the target proxy server does not meet the client's proxy usage restrictions, then the user needs to manually complete the proxy server configuration. Simultaneously, in response to the user's proxy server configuration operation, the attribute information of the target proxy server configured by the user is obtained and encrypted and stored.
[0085] The application proxy configuration processing method provided in this application embodiment detects the network environment in real time to determine the connection status between the client and the business server. When the direct connection is unstable, the system automatically detects and obtains the attribute information of the configured proxy server, such as address, port, and protocol type. Then, based on preset client proxy usage restrictions, it determines whether the proxy server meets the usage requirements to ensure the security and compliance of communication. If the proxy server meets the requirements, the system will automatically configure the proxy to enable communication between the client and the business server. If the requirements are not met, the user is prompted to manually configure it, and the user-inputted proxy information is encrypted and stored so that the client can directly obtain the target proxy server's attribute information and complete the automatic configuration the next time it switches to the same network environment. Through the above method, the stability and efficiency of network communication are significantly improved, the complexity of manual configuration by the user is reduced, and the security risks are reduced through strict restrictions, ensuring the security and compliance of data transmission.
[0086] Figure 7 A schematic diagram of the overall process of an application proxy configuration processing method provided in this application is shown below. Figure 7As shown, the application proxy configuration processing method provided in this embodiment specifically includes:
[0087] During client-side operation, the main process is responsible for launching an independent process to perform network detection tasks. This process monitors in real time whether network communication between the client and the business server is smooth and whether a proxy server has been configured. If a target proxy server is detected, its attribute information is obtained to further determine whether the proxy server meets the proxy usage restrictions preset by the client. If the target proxy server meets the restrictions, the proxy configuration is automatically completed, and the proxy server forwards requests from clients with completed proxy configuration to the business server.
[0088] If it is detected that no proxy server has been configured or the target proxy server does not meet the proxy usage restrictions preset by the client, the user needs to manually configure the proxy and encrypt and store the proxy server's attribute information so that the client can directly obtain the target proxy server's attribute information and complete the automatic configuration the next time it switches to this network environment.
[0089] Figure 8 A schematic diagram of the structure of an application agent configuration processing device provided in this application is shown below. Figure 8 As shown, the application proxy configuration processing device 80 provided in this embodiment includes:
[0090] The network detection module 801 is used to detect the network environment during client operation to determine whether a proxy server has been configured.
[0091] The proxy identification module 802 is used to obtain the attribute information of the target proxy server if it is determined that the target proxy server has been configured.
[0092] The policy management module 803 is used to determine whether the target proxy server meets the pre-configured client proxy usage restrictions based on the target proxy server's attribute information.
[0093] The proxy configuration module 804 is used to establish communication between the target proxy server and the business server based on the attribute information if it is determined that the target proxy server meets the proxy usage restrictions.
[0094] In one possible implementation, the proxy identification module 802 is specifically used to define the attribute information of the target proxy server, including: the address, port, and supported protocol types of the target proxy server.
[0095] In one possible implementation, the policy management module 803 is specifically used to limit the restrictions on agent usage, including:
[0096] Allow the use of a proxy server;
[0097] Specific restrictions on the proxy servers that are allowed to be used, wherein the specific restrictions include at least one of the following: the time range during which the proxy servers are allowed to be used, the address location of the proxy servers that are allowed to be used, and the protocol type of the proxy servers that are allowed to be used.
[0098] In another possible implementation, the policy management module 803 is further used for:
[0099] Determine whether the client allows the use of a proxy server;
[0100] If it is determined that the client is allowed to use a proxy server, then based on the target proxy server's address, port, and supported protocol types, determine whether the client's specific restrictions are met.
[0101] If the attribute information is determined to meet specific restrictions, then the target proxy server is determined to meet the client's proxy usage restrictions.
[0102] If the client does not allow the use of a proxy server or the target proxy server does not meet the client's specific restrictions, then it is determined that the target proxy server does not meet the client's proxy usage restrictions.
[0103] In one possible implementation, the processing device 80 for applying agent configuration further includes:
[0104] The fifth processing module 805 is used to push a manual configuration prompt message if it is determined that no proxy server has been configured. The manual configuration prompt message is used to prompt the user to manually configure the proxy server.
[0105] The sixth processing module 806 is used to respond to the user's proxy server configuration operation, obtain the attribute information of the target proxy server configured by the user, and encrypt and store the attribute information of the target proxy server.
[0106] In one possible implementation, the network detection module 801 is specifically used for:
[0107] Check whether the network communication between the client and the business server is smooth;
[0108] If the network communication between the client and the business server is smooth, then the client can directly access the business server.
[0109] If network communication between the client and the business server is not smooth, the system will determine whether the client has been configured with a proxy server based on the information stored in the preset proxy storage area.
[0110] The application proxy configuration processing device provided in this embodiment is used to execute the technical solutions in the aforementioned method embodiments. Its implementation principle and technical effects are similar, and will not be repeated here.
[0111] Figure 9 This application provides a schematic diagram of the structure of an electronic device. For example... Figure 9 As shown, the electronic device 90 provided in this embodiment includes at least one processor 901 and a memory 902. Optionally, the device 90 further includes a communication component 903. The processor 901, memory 902, and communication component 903 are connected via a bus 904.
[0112] In a specific implementation, at least one processor 901 executes computer execution instructions stored in memory 902, causing at least one processor 901 to perform the above-described method.
[0113] The specific implementation process of processor 901 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0114] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0115] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0116] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0117] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0118] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0119] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0120] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0121] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0122] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0123] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0124] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0126] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for processing application proxy configuration, characterized in that, include: During client operation, the network environment is monitored to determine whether a proxy server has been configured. If it is determined that a target proxy server has been configured, then obtain the attribute information of the target proxy server; Based on the attribute information of the target proxy server, determine whether the target proxy server meets the pre-configured proxy usage restrictions of the client; If the target proxy server is determined to meet the proxy usage restrictions, then communication between the target proxy server and the business server is established based on the attribute information.
2. The method according to claim 1, characterized in that, The restrictions on the use of the agent include the following conditions: Allow the use of a proxy server; Specific restrictions on the proxy servers that are allowed to be used, wherein the specific restrictions include at least one of the following: the time range during which the proxy servers are allowed to be used, the address location of the proxy servers that are allowed to be used, and the protocol type of the proxy servers that are allowed to be used.
3. The method according to claim 2, characterized in that, The attribute information of the target proxy server includes the address, port, and supported protocol types of the target proxy server; Accordingly, determining whether the target proxy server meets the pre-configured proxy usage restrictions for the client based on the attribute information of the target proxy server includes: Determine whether the client allows the use of a proxy server; If it is determined that the client is allowed to use a proxy server, then based on the address, port, and supported protocol types of the target proxy server, it is determined whether the specific restrictions corresponding to the client are met. If the attribute information is determined to meet the specific restriction conditions, then the target proxy server is determined to meet the client's proxy usage restriction conditions. If the client does not allow the use of a proxy server or the target proxy server does not meet the specific restrictions corresponding to the client, then it is determined that the target proxy server does not meet the proxy usage restrictions of the client.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If it is determined that no proxy server has been configured, a manual configuration prompt message will be pushed to the user to manually configure the proxy server.
5. The method according to claim 4, characterized in that, The method further includes: In response to the user's proxy server configuration operation, the system obtains the attribute information of the target proxy server configured by the user and stores the attribute information of the target proxy server in encrypted form.
6. The method according to any one of claims 1 to 3, characterized in that, The process of detecting the network environment and determining whether a proxy server has been configured includes: Detect whether the network communication between the client and the business server is smooth; If the network communication between the client and the business server is smooth, then the client can directly access the business server. If network communication between the client and the business server is not smooth, the system determines whether the client has been configured with a proxy server based on the information stored in the preset proxy storage area.
7. A processing apparatus for application proxy configuration, characterized in that, include: The network detection module is used to detect the network environment during client operation and determine whether a proxy server has been configured. The proxy identification module is used to obtain the attribute information of the target proxy server if it is determined that the target proxy server has been configured. The policy management module is used to determine whether the target proxy server meets the pre-configured proxy usage restrictions of the client based on the attribute information of the target proxy server. The proxy configuration module is used to establish communication between the target proxy server and the business server based on the attribute information if it is determined that the target proxy server meets the proxy usage restrictions.
8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 6.