Completing commit for push.
This commit is contained in:
parent
07380af871
commit
1df1e17c05
41
README.md
41
README.md
|
@ -1,5 +1,46 @@
|
||||||
# RVPN Server
|
# RVPN Server
|
||||||
|
|
||||||
|
Branch: restructured
|
||||||
|
--------------------
|
||||||
|
* restructure into various packages, removing items from package "main"
|
||||||
|
* used caddy source as a guide
|
||||||
|
* weird debugging issue introduced, will not halt, break point unverified.
|
||||||
|
* although a test project debugs just fin
|
||||||
|
|
||||||
|
listener_client — the WSS client
|
||||||
|
- removed support for anything admin
|
||||||
|
- injected the domains from the claim
|
||||||
|
- domains are now included as initialDomains
|
||||||
|
- registration performans as normal but includes adding the domains to a map of domains, and a collection of domains on the connection.
|
||||||
|
- the system now supports look up fast in either direction, not sure if it will be needed.
|
||||||
|
- reads a chan during registration before allowing traffic, making sure all is well.
|
||||||
|
- registration returns a true on the channel if all is well. If it is not, false. Likely will add some text to pass back.
|
||||||
|
|
||||||
|
Connection
|
||||||
|
- added support for boolean channel
|
||||||
|
- support for initial domains in a slice, these are brought back from the JWT as a interface and then are type asserted into the map
|
||||||
|
- removed all the old timer sender dwell stuff as a POC for traffic counts.
|
||||||
|
|
||||||
|
ConnectionTable
|
||||||
|
- added support for domain announcement after the WSS is connection. Not sure if we will need these. They have not been implemented.
|
||||||
|
- I assume all domains are registered with JWT unless I hear differently which would require a new WSS session
|
||||||
|
- expanded NewTable constructor
|
||||||
|
- populating domains into the domain map, and into the connection slice.
|
||||||
|
- added support for removing domains when a connection is removed.
|
||||||
|
|
||||||
|
Packer
|
||||||
|
- added support for a PackerHeader type and PackerData type
|
||||||
|
- these are connected in a Packer type
|
||||||
|
- support for calculated address family based on ip address property
|
||||||
|
- service field is set to "na"
|
||||||
|
|
||||||
|
Logging
|
||||||
|
- unified package logging based on a package init. Will likely need to remove this
|
||||||
|
|
||||||
|
Tests
|
||||||
|
- stared to structure project for tests.
|
||||||
|
|
||||||
|
|
||||||
Build Instructions
|
Build Instructions
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ func (c *Table) Run() {
|
||||||
select {
|
select {
|
||||||
case connection := <-c.register:
|
case connection := <-c.register:
|
||||||
loginfo.Println("register fired")
|
loginfo.Println("register fired")
|
||||||
c.connections[connection] = make([]string, incrementDomains)
|
c.connections[connection] = make([]string, initialDomains)
|
||||||
connection.commCh <- true
|
connection.commCh <- true
|
||||||
|
|
||||||
// handle initial domain additions
|
// handle initial domain additions
|
||||||
|
@ -52,9 +52,6 @@ func (c *Table) Run() {
|
||||||
c.connections[connection] = append(s, newDomain)
|
c.connections[connection] = append(s, newDomain)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(c.domains)
|
|
||||||
fmt.Println(c.connections)
|
|
||||||
|
|
||||||
loginfo.Println("register exiting")
|
loginfo.Println("register exiting")
|
||||||
|
|
||||||
case connection := <-c.unregister:
|
case connection := <-c.unregister:
|
||||||
|
@ -69,10 +66,6 @@ func (c *Table) Run() {
|
||||||
|
|
||||||
delete(c.connections, connection)
|
delete(c.connections, connection)
|
||||||
close(connection.send)
|
close(connection.send)
|
||||||
|
|
||||||
fmt.Println(c.domains)
|
|
||||||
fmt.Println(c.connections)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case domainMapping := <-c.domainAnnounce:
|
case domainMapping := <-c.domainAnnounce:
|
||||||
|
@ -85,6 +78,8 @@ func (c *Table) Run() {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
fmt.Println("domain ", c.domains)
|
||||||
|
fmt.Println("connections ", c.connections)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue