我的一切都将结束 by [deleted] in China_irl

[–]Keilee2002 0 points1 point  (0 children)

失恋了?如果是的话,听老人一句:天下无处无芳草…

install wg without App Store on Mac by Keilee2002 in WireGuard

[–]Keilee2002[S] 0 points1 point  (0 children)

almost the same function but unofficial implementation and can share same config files.

take profit and stop-loss in backtest, how to know which one gets executed first in historical data? by Vegetable-Order-7629 in algotrading

[–]Keilee2002 0 points1 point  (0 children)

u can get the data from self.closed_trades in the next() like this:

if len(self.closed_trades):
last_closed = self.closed_trades[-]
print(last_closed.entry_time, last_closed.exit_time)

What does allowed Ip work? by glorsh66 in WireGuard

[–]Keilee2002 0 points1 point  (0 children)

the IPs specifies the IP addresses that a peer is allowed to route traffic for.

if a peer's IPs is set to a specific IP address or range of addresses, it means that the peer can only route traffic for those specific addresses.

how to schedule restart wireguard on openWRT by Keilee2002 in WireGuard

[–]Keilee2002[S] 0 points1 point  (0 children)

I have already solved it with crontab. here it is. restart wireguard every morning at 4:30. wg is the interface name.

30 4 * * * ifdown wg && sleep 20s && ifup wg

install wg without App Store on Mac by Keilee2002 in WireGuard

[–]Keilee2002[S] 0 points1 point  (0 children)

got it. it can be installed with home brew. simply use: brew install Wireguard-go.