Skip to content

Commit

Permalink
support linux
Browse files Browse the repository at this point in the history
  • Loading branch information
anonysoul committed Jan 29, 2024
1 parent 2ec1709 commit b792bfc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- Windows operating system
- Mac operating system
- Linux operating system (KDE,GNOME)

## Install

Expand Down Expand Up @@ -53,6 +54,29 @@ MacProxied.enable(config);
// MacProxied.disable();
```

Set up proxy on Linux:

```typescript
import { LinuxProxied, LinuxProxyConfig } from "net-proxied";

const baseProxy: BaseProxyConfig = {
hostname: "10.20.30.11",
port: 1111
};
const config: LinuxProxyConfig = {
http: baseProxy,
https: baseProxy,
ftp: baseProxy,
socks: baseProxy,
noProxy: ["localhost", "192.168.*", "10.*"]
};

LinuxProxied.enable(config);

// You can also disable it
// LinuxProxied.disable();
```

## License

[MIT](LICENSE) © [anonysoul](https://github.com/anonysoul/)

0 comments on commit b792bfc

Please sign in to comment.