1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-04 17:33:21 +08:00

Make regex more restrictive to allow the proxy to be more deterministic.

Make it to not depend on a specific TLD.
This commit is contained in:
Jonathan Leibiusky @xetorthio
2016-11-23 11:49:07 -03:00
parent b4ce06fa20
commit 6af6f42721
2 changed files with 8 additions and 5 deletions

View File

@@ -108,12 +108,14 @@ func NewSession() (*Session, error) {
log.Println("ERROR NETWORKING")
return nil, err
}
log.Printf("Network [%s] created for session [%s]\n", s.Id, s.Id)
// Connect PWD daemon to the new network
if err := ConnectNetwork("pwd", s.Id); err != nil {
log.Println("ERROR NETWORKING")
return nil, err
}
log.Printf("Connected pwd to network [%s]\n", s.Id)
// We store sessions as soon as we create one so we don't delete new sessions on an api restart
if err := saveSessionsToDisk(); err != nil {