fix that broken logic
This commit is contained in:
		| @@ -519,11 +519,13 @@ func (t *tun) listen(link *link) { | |||||||
| 			// assuming there's a channel and session | 			// assuming there's a channel and session | ||||||
| 			// try get the dialing socket | 			// try get the dialing socket | ||||||
| 			s, exists := t.getSession(channel, sessionId) | 			s, exists := t.getSession(channel, sessionId) | ||||||
| 			if exists && s.mode == Unicast && !loopback { | 			if exists && !loopback { | ||||||
| 				// only delete this if its unicast | 				if s.mode == Unicast { | ||||||
| 				// but not if its a loopback conn | 					// only delete this if its unicast | ||||||
| 				t.delSession(channel, sessionId) | 					// but not if its a loopback conn | ||||||
| 				continue | 					t.delSession(channel, sessionId) | ||||||
|  | 					continue | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 			// otherwise its a session mapping of sorts | 			// otherwise its a session mapping of sorts | ||||||
| 		case "keepalive": | 		case "keepalive": | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user