Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define an differnt output-folder per option #132

Open
ghost opened this issue Aug 3, 2016 · 3 comments
Open

define an differnt output-folder per option #132

ghost opened this issue Aug 3, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 3, 2016

Hi,

what do u think about an option to define and output-folder?

I actual working on an environment for my home. We are sitting here with 3 Accounts and i would like to log all Runs,Summons and so on. Thats my actual steps:

  • setup and raspery pi (raspian)
  • setup swproxy (stock SWProxy + SwarfarmLogger)
  • provide an pac-file to seperate traffic
    • easyer to maintain
    • only SW-API-Calls run through SWProxy and the rest run direct to the Internet

And it work like a charm. The last missing piece is an Samba-Share for the outputs (so i could easy fill SWFarm with my json on Windows). But i would like to separate thinks. So i could install SWProxy on any path and the outputs goes to my Sambda-Share.

Greetings

@Waxo
Copy link

Waxo commented Aug 22, 2016

Hi your request features seems great !

I'm stuck with the PAC configuration can you please provide your PAC-file ?

Thanks !

@ghost
Copy link
Author

ghost commented Aug 22, 2016

simply as it is :)

function FindProxyForURL(url, host) {
    if (shExpMatch(host, "summonerswar*qpyou.cn"))
        return "PROXY 192.168.1.18:8080";

    return "DIRECT";
}

This should fit on all Server. So all SW-Traffic runes to the Proxy and the rest goes direct to the internet.

@ghost
Copy link
Author

ghost commented Sep 21, 2016

Small question:

Im not very common with python programming style. It is "fine" in common to store variable global? I would save the command options globale (in SWProxy.py") to access them in the SWProxyCallback or so.

Or would it be better to parse the options variable through all the classes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant